]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
char: lp: move trailing statement to next line
authorSudip Mukherjee <sudipm.mukherjee@gmail.com>
Sun, 25 Nov 2018 19:47:33 +0000 (19:47 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 27 Nov 2018 07:30:55 +0000 (08:30 +0100)
Fix checkpatch errors for trailing if else statements.

Signed-off-by: Sudip Mukherjee <sudipm.mukherjee@gmail.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/char/lp.c

index 7b15272c05106a81814b2a2e71aa717206cb450a..65bf32244f48247e7834888eb70c06d2fd85b1aa 100644 (file)
@@ -223,12 +223,15 @@ static void lp_error (int minor)
                return;
 
        polling = lp_table[minor].dev->port->irq == PARPORT_IRQ_NONE;
-       if (polling) lp_release_parport (&lp_table[minor]);
+       if (polling)
+               lp_release_parport (&lp_table[minor]);
        prepare_to_wait(&lp_table[minor].waitq, &wait, TASK_INTERRUPTIBLE);
        schedule_timeout(LP_TIMEOUT_POLLED);
        finish_wait(&lp_table[minor].waitq, &wait);
-       if (polling) lp_claim_parport_or_block (&lp_table[minor]);
-       else parport_yield_blocking (lp_table[minor].dev);
+       if (polling)
+               lp_claim_parport_or_block (&lp_table[minor]);
+       else
+               parport_yield_blocking (lp_table[minor].dev);
 }
 
 static int lp_check_status(int minor)