char: lp: move trailing statement to next line
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>
This commit is contained in:
parent
69f92163f4
commit
1c3de93621
|
@ -223,12 +223,15 @@ static void lp_error (int minor)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
polling = lp_table[minor].dev->port->irq == PARPORT_IRQ_NONE;
|
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);
|
prepare_to_wait(&lp_table[minor].waitq, &wait, TASK_INTERRUPTIBLE);
|
||||||
schedule_timeout(LP_TIMEOUT_POLLED);
|
schedule_timeout(LP_TIMEOUT_POLLED);
|
||||||
finish_wait(&lp_table[minor].waitq, &wait);
|
finish_wait(&lp_table[minor].waitq, &wait);
|
||||||
if (polling) lp_claim_parport_or_block (&lp_table[minor]);
|
if (polling)
|
||||||
else parport_yield_blocking (lp_table[minor].dev);
|
lp_claim_parport_or_block (&lp_table[minor]);
|
||||||
|
else
|
||||||
|
parport_yield_blocking (lp_table[minor].dev);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int lp_check_status(int minor)
|
static int lp_check_status(int minor)
|
||||||
|
|
Loading…
Reference in New Issue