[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20150921205925.GA16302@ubuntu>
Date: Mon, 21 Sep 2015 20:59:30 +0000
From: "Thombare, Parshuram (P.)" <pthombre@...teon.com>
To: "lidza.louina@...il.com" <lidza.louina@...il.com>,
"markh@...pro.net" <markh@...pro.net>,
"gregkh@...uxfoundation.org" <gregkh@...uxfoundation.org>,
"trivial@...nel.org" <trivial@...nel.org>
CC: "driverdev-devel@...uxdriverproject.org"
<driverdev-devel@...uxdriverproject.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: [PATCH] Staging: dgnc: Simplify a trivial if-return sequence\n From:
Parshuram Thombare <pthombre@...teon.com>
Signed-off-by: Parshuram Thombare <pthombre@...teon.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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists