aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/dgnc
diff options
context:
space:
mode:
authorNishad Kamdar <nishadkamdar@gmail.com>2018-07-23 00:18:01 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-07-24 14:00:54 +0200
commit1ef5c96081d849a00dc973733cde3b595fc38442 (patch)
tree78c8bdf242e2c7eab1e3313842151c2fe506e681 /drivers/staging/dgnc
parentstaging: bcm2835-camera: handle wait_for_completion_timeout return properly (diff)
downloadlinux-dev-1ef5c96081d849a00dc973733cde3b595fc38442.tar.xz
linux-dev-1ef5c96081d849a00dc973733cde3b595fc38442.zip
staging: dgnc: dgnc_tty.c: Avoid '(' at the end of line
Bring the first argument to the previous line, remove a superfluous () in the second argument by using !, and align the lines to match open parenthesis. Issue found by checkpatch. Signed-off-by: Nishad Kamdar <nishadkamdar@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/dgnc')
-rw-r--r--drivers/staging/dgnc/dgnc_tty.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/staging/dgnc/dgnc_tty.c b/drivers/staging/dgnc/dgnc_tty.c
index 9f9b9a5b4b27..f91eaa1c3b67 100644
--- a/drivers/staging/dgnc/dgnc_tty.c
+++ b/drivers/staging/dgnc/dgnc_tty.c
@@ -883,10 +883,9 @@ static int dgnc_tty_open(struct tty_struct *tty, struct file *file)
* touched safely, the close routine will signal the
* ch_flags_wait to wake us back up.
*/
- rc = wait_event_interruptible(
- ch->ch_flags_wait,
- (((ch->ch_tun.un_flags |
- ch->ch_pun.un_flags) & UN_CLOSING) == 0));
+ rc = wait_event_interruptible(ch->ch_flags_wait,
+ !((ch->ch_tun.un_flags |
+ ch->ch_pun.un_flags) & UN_CLOSING));
/* If ret is non-zero, user ctrl-c'ed us */
if (rc)
return -EINTR;