diff options
author | Parshuram Thombare <thombarepr@yahoo.com> | 2015-10-11 02:06:44 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-10-13 07:09:51 +0300 |
commit | 36e712a8a14d336a2f6433f64a8e2bb974138aec (patch) | |
tree | 9d8b5aae9fc8dde6c6cab0422ef9c6aae25e51e9 /drivers | |
parent | 35e942f3167a2ba18bd3db9c964183d81c130a7d (diff) | |
download | linux-36e712a8a14d336a2f6433f64a8e2bb974138aec.tar.xz |
staging: dgnc: simplify a trivial if-return sequence
Signed-off-by: Parshuram Thombare <thombarepr@yahoo.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/staging/dgnc/dgnc_tty.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/staging/dgnc/dgnc_tty.c b/drivers/staging/dgnc/dgnc_tty.c index 8489e5a1dae8..4ac9092da392 100644 --- a/drivers/staging/dgnc/dgnc_tty.c +++ b/drivers/staging/dgnc/dgnc_tty.c @@ -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; } /* |