[PATCH] Staging: dgnc: Simplify a trivial if-return sequence\n From: Parshuram Thombare <pthombre@xxxxxxxxxxx>

From: Thombare, Parshuram (P.)
Date: Mon Sep 21 2015 - 17:33:33 EST


Signed-off-by: Parshuram Thombare <pthombre@xxxxxxxxxxx>
---
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 fbfe79a..b42b543 100644
--- a/drivers/staging/dgnc/dgnc_tty.c
+++ b/drivers/staging/dgnc/dgnc_tty.c
@@ -1314,10 +1314,7 @@ static int dgnc_block_til_ready(struct tty_struct *tty, struct file *file, struc

spin_unlock_irqrestore(&ch->ch_lock, flags);

- if (retval)
- return retval;
-
- return 0;
+ return retval;
}


--
1.7.0.4
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/