lkml.org 
[lkml]   [2015]   [Sep]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] Staging: dgnc: Simplify a trivial if-return sequence\n From: Parshuram Thombare <>
Date
Signed-off-by: Parshuram Thombare <pthombre@visteon.com>
---
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

\
 
 \ /
  Last update: 2015-09-22 00:01    [W:0.482 / U:0.244 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site