]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
staging: dgnc: fix Logical continuations should be on the
authorDaeseok Youn <daeseok.youn@gmail.com>
Fri, 25 Mar 2016 02:44:34 +0000 (11:44 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 28 Mar 2016 14:30:36 +0000 (07:30 -0700)
fix checkpatch.pl warning about 'Logical continuations
should be on the previous line' in dgnc_neo.c file.

I think the 'force' need to check first, because if the 'force' is true,
it doesn't need to call another function call.

Signed-off-by: Daeseok Youn <daeseok.youn@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/dgnc/dgnc_neo.c

index 10b596fb4681d73257803bda5ba12e13a532a28c..d732e6e99408511bc9658c9dc13e47927340e767 100644 (file)
@@ -359,8 +359,8 @@ static inline void neo_clear_break(struct channel_t *ch, int force)
 
        /* Turn break off, and unset some variables */
        if (ch->ch_flags & CH_BREAK_SENDING) {
-               if (time_after_eq(jiffies, ch->ch_stop_sending_break)
-                   || force) {
+               if (force ||
+                   time_after_eq(jiffies, ch->ch_stop_sending_break)) {
                        unsigned char temp = readb(&ch->ch_neo_uart->lcr);
 
                        writeb((temp & ~UART_LCR_SBC), &ch->ch_neo_uart->lcr);