netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Rahul Jain <rahul.jain@samsung.com>
To: "Rafa? Mi?ecki" <zajec5@gmail.com>
Cc: David Miller <davem@davemloft.net>,
	Johannes Berg <johannes.berg@intel.com>,
	Network Development <netdev@vger.kernel.org>,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
	"linux-wireless@vger.kernel.org" <linux-wireless@vger.kernel.org>,
	Nitin Jhanwar <nitin.j@samsung.com>,
	HEMANSHU SRIVASTAVA <hemanshu.s@samsung.com>,
	Amit Khatri <amit.khatri@samsung.com>
Subject: [PATCH v2] cfg80211-wext: deleting dead code
Date: Tue, 14 Jul 2015 08:46:43 +0000 (GMT)	[thread overview]
Message-ID: <10994553.722921436863601814.JavaMail.weblogic@ep2mlwas06c> (raw)

From e945737ef2e3a5b7198b9795d6375de85b2fac08 Mon Sep 17 00:00:00 2001
From: Rahul Jain <rahul.jain@samsung.com>
Date: Tue, 14 Jul 2015 14:04:09 +0530
Subject: [PATCH] cfg80211-wext: deleting dead code

In func cfg80211_wext_siwretry(), the value of changed is getting
modified to non-zero value within if-else condition and it is becoming a non-zero value.
So, the condition "if (!changed)" becomes unreachable.

Signed-off-by: Rahul Jain <rahul.jain@samsung.com>
Signed-off-by: Amit Khatri <amit.khatri@samsung.com>
---
 net/wireless/wext-compat.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/net/wireless/wext-compat.c b/net/wireless/wext-compat.c
index fd68283..8de1b64 100644
--- a/net/wireless/wext-compat.c
+++ b/net/wireless/wext-compat.c
@@ -387,9 +387,6 @@ static int cfg80211_wext_siwretry(struct net_device *dev,
 		changed |= WIPHY_PARAM_RETRY_SHORT;
 	}
 
-	if (!changed)
-		return 0;
-
 	err = rdev_set_wiphy_params(rdev, changed);
 	if (err) {
 		wdev->wiphy->retry_short = oshort;
-- 
1.9.1

------- Original Message -------
Sender : Rafa? Mi?ecki<zajec5@gmail.com>
Date : Jul 14, 2015 01:28 (GMT+05:30)
Title : Re: [PATCH] Logically DeadCode

On 3 July 2015 at 06:52, Rahul Jain wrote:
> From 0c34030166a150d6d9f1ab52e7bb40a5440a68c2 Mon Sep 17 00:00:00 2001
> From: Rahul Jain 
> Date: Fri, 3 Jul 2015 10:19:12 +0530
> Subject: [PATCH] Logically DeadCode

You didn't use any prefix for the commit message, it's unclear
(Logically DeadCode what?), no description, you touch two code places
at once.

Please fix above problems and resend.

                 reply	other threads:[~2015-07-14  8:46 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=10994553.722921436863601814.JavaMail.weblogic@ep2mlwas06c \
    --to=rahul.jain@samsung.com \
    --cc=amit.khatri@samsung.com \
    --cc=davem@davemloft.net \
    --cc=hemanshu.s@samsung.com \
    --cc=johannes.berg@intel.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-wireless@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=nitin.j@samsung.com \
    --cc=zajec5@gmail.com \
    /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;
as well as URLs for NNTP newsgroup(s).