Messages in this thread Patch in this message | | | From | Dominique van den Broeck <> | Subject | [PATCH 3/3] staging: fwserial: (coding style) Rewriting a call to a long function | Date | Tue, 29 Mar 2016 19:14:22 +0200 |
| |
Fixing a lone row exceeding 80 columns so the only remaining warnings emitted by checkpatch.pl are missing comments on spinlocks and memory barriers.
Signed-off-by: Dominique van den Broeck <domdevlin@free.fr> --- drivers/staging/fwserial/fwserial.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/drivers/staging/fwserial/fwserial.c b/drivers/staging/fwserial/fwserial.c index 4dd5304..c5f73ef 100644 --- a/drivers/staging/fwserial/fwserial.c +++ b/drivers/staging/fwserial/fwserial.c @@ -1343,9 +1343,11 @@ static int fwtty_break_ctl(struct tty_struct *tty, int state) if (state == -1) { set_bit(STOP_TX, &port->flags); - ret = wait_event_interruptible_timeout(port->wait_tx, - !test_bit(IN_TX, &port->flags), - 10); + ret = + wait_event_interruptible_timeout(port->wait_tx, + !test_bit(IN_TX, &port->flags), + 10); + if (ret == 0 || ret == -ERESTARTSYS) { clear_bit(STOP_TX, &port->flags); fwtty_restart_tx(port); -- 2.4.3
| |