staging: dgnc: simplify a trivial if-return sequence
authorParshuram Thombare <thombarepr@yahoo.com>
Sat, 10 Oct 2015 23:06:44 +0000 (19:06 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 13 Oct 2015 04:09:51 +0000 (21:09 -0700)
Signed-off-by: Parshuram Thombare <thombarepr@yahoo.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/dgnc/dgnc_tty.c

index 8489e5a1dae813c9f1676ac3f3f6c5b754e1cb29..4ac9092da392a090dc7a34ee78a84c91951a0678 100644 (file)
@@ -1336,10 +1336,7 @@ static int dgnc_block_til_ready(struct tty_struct *tty,
 
        spin_unlock_irqrestore(&ch->ch_lock, flags);
 
-       if (retval)
-               return retval;
-
-       return 0;
+       return retval;
 }
 
 /*