public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: "Thombare, Parshuram (P.)" <pthombre@visteon.com>
To: "lidza.louina@gmail.com" <lidza.louina@gmail.com>,
	"markh@compro.net" <markh@compro.net>,
	"gregkh@linuxfoundation.org" <gregkh@linuxfoundation.org>,
	"trivial@kernel.org" <trivial@kernel.org>
Cc: "driverdev-devel@linuxdriverproject.org" 
	<driverdev-devel@linuxdriverproject.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: [PATCH] Staging: dgnc: Simplify a trivial if-return sequence\n From: Parshuram Thombare <pthombre@visteon.com>
Date: Mon, 21 Sep 2015 20:59:30 +0000	[thread overview]
Message-ID: <20150921205925.GA16302@ubuntu> (raw)

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

             reply	other threads:[~2015-09-21 21:33 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-21 20:59 Thombare, Parshuram (P.) [this message]
2015-09-21 21:00 ` [PATCH] Staging: dgnc: Simplify a trivial if-return sequence\n From: Parshuram Thombare <pthombre@visteon.com> gregkh

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20150921205925.GA16302@ubuntu \
    --to=pthombre@visteon.com \
    --cc=driverdev-devel@linuxdriverproject.org \
    --cc=gregkh@linuxfoundation.org \
    --cc=lidza.louina@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=markh@compro.net \
    --cc=trivial@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox