public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Staging: dgnc: Simplify a trivial if-return sequence\n From: Parshuram Thombare <pthombre@visteon.com>
@ 2015-09-21 20:59 Thombare, Parshuram (P.)
  2015-09-21 21:00 ` gregkh
  0 siblings, 1 reply; 2+ messages in thread
From: Thombare, Parshuram (P.) @ 2015-09-21 20:59 UTC (permalink / raw)
  To: lidza.louina@gmail.com, markh@compro.net,
	gregkh@linuxfoundation.org, trivial@kernel.org
  Cc: driverdev-devel@linuxdriverproject.org,
	linux-kernel@vger.kernel.org

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

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] Staging: dgnc: Simplify a trivial if-return sequence\n From: Parshuram Thombare <pthombre@visteon.com>
  2015-09-21 20:59 [PATCH] Staging: dgnc: Simplify a trivial if-return sequence\n From: Parshuram Thombare <pthombre@visteon.com> Thombare, Parshuram (P.)
@ 2015-09-21 21:00 ` gregkh
  0 siblings, 0 replies; 2+ messages in thread
From: gregkh @ 2015-09-21 21:00 UTC (permalink / raw)
  To: Thombare, Parshuram (P.)
  Cc: lidza.louina@gmail.com, markh@compro.net, trivial@kernel.org,
	driverdev-devel@linuxdriverproject.org,
	linux-kernel@vger.kernel.org

On Mon, Sep 21, 2015 at 08:59:30PM +0000, Thombare, Parshuram (P.) wrote:
> Signed-off-by: Parshuram Thombare <pthombre@visteon.com>

Your subject is really odd :(

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-09-21 21:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-21 20:59 [PATCH] Staging: dgnc: Simplify a trivial if-return sequence\n From: Parshuram Thombare <pthombre@visteon.com> Thombare, Parshuram (P.)
2015-09-21 21:00 ` gregkh

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox