Commit 9cdf838b authored by Masaru Nomura's avatar Masaru Nomura Committed by Greg Kroah-Hartman

staging: dgnc: dgnc_tty: Remove a prohibited space

Remove a prohibited space before a closed parenthesis of if statement
to meet kernel coding style.
Signed-off-by: default avatarMasaru Nomura <massa.nomura@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent a82477c3
...@@ -1676,7 +1676,7 @@ static void dgnc_tty_close(struct tty_struct *tty, struct file *file) ...@@ -1676,7 +1676,7 @@ static void dgnc_tty_close(struct tty_struct *tty, struct file *file)
/* /*
* turn off print device when closing print device. * turn off print device when closing print device.
*/ */
if ((un->un_type == DGNC_PRINT) && (ch->ch_flags & CH_PRON) ) { if ((un->un_type == DGNC_PRINT) && (ch->ch_flags & CH_PRON)) {
dgnc_wmove(ch, ch->ch_digi.digi_offstr, dgnc_wmove(ch, ch->ch_digi.digi_offstr,
(int) ch->ch_digi.digi_offlen); (int) ch->ch_digi.digi_offlen);
ch->ch_flags &= ~CH_PRON; ch->ch_flags &= ~CH_PRON;
...@@ -1734,7 +1734,7 @@ static void dgnc_tty_close(struct tty_struct *tty, struct file *file) ...@@ -1734,7 +1734,7 @@ static void dgnc_tty_close(struct tty_struct *tty, struct file *file)
/* /*
* turn off print device when closing print device. * turn off print device when closing print device.
*/ */
if ((un->un_type == DGNC_PRINT) && (ch->ch_flags & CH_PRON) ) { if ((un->un_type == DGNC_PRINT) && (ch->ch_flags & CH_PRON)) {
dgnc_wmove(ch, ch->ch_digi.digi_offstr, dgnc_wmove(ch, ch->ch_digi.digi_offstr,
(int) ch->ch_digi.digi_offlen); (int) ch->ch_digi.digi_offlen);
ch->ch_flags &= ~CH_PRON; ch->ch_flags &= ~CH_PRON;
...@@ -1838,7 +1838,7 @@ static int dgnc_maxcps_room(struct tty_struct *tty, int bytes_available) ...@@ -1838,7 +1838,7 @@ static int dgnc_maxcps_room(struct tty_struct *tty, int bytes_available)
if (un->un_type != DGNC_PRINT) if (un->un_type != DGNC_PRINT)
return bytes_available; return bytes_available;
if (ch->ch_digi.digi_maxcps > 0 && ch->ch_digi.digi_bufsize > 0 ) { if (ch->ch_digi.digi_maxcps > 0 && ch->ch_digi.digi_bufsize > 0) {
int cps_limit = 0; int cps_limit = 0;
unsigned long current_time = jiffies; unsigned long current_time = jiffies;
unsigned long buffer_time = current_time + unsigned long buffer_time = current_time +
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment