Skip to contentSkip to conversation

Logically DeadCode

PATCH In review Rahul Jain 2 participants 2 messages Jul 3, 2015 – Jul 13, 2015

Subsystems (3)
lore
Share & tools
lore

Rahul Jain

author
#0 lore raw

PATCH 1/1 Logically DeadCode

hello,

From 0c34030166a150d6d9f1ab52e7bb40a5440a68c2 Mon Sep 17 00:00:00 2001
From: Rahul Jain <[email protected]>
Date: Fri, 3 Jul 2015 10:19:12 +0530
Subject: [PATCH] Logically DeadCode

---
 net/wireless/util.c        | 3 ---
 net/wireless/wext-compat.c | 3 ---
 2 files changed, 6 deletions(-)
net/wireless/util.c +0 -3
index baf7218..507e894 100644
@@ -1009,9 +1009,6 @@ int cfg80211_change_iface(struct cfg80211_registered_device *rdev,
 		case NUM_NL80211_IFTYPES:
 			/* not happening */
 			break;
-		case NL80211_IFTYPE_P2P_DEVICE:
-			WARN_ON(1);
-			break;
 		}
 	}
 
net/wireless/wext-compat.c +0 -3
index fd68283..8de1b64 100644
@@ -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;
Signature · 1 line
1.9.1
#1 lore raw
Quoted 4 lines · Rahul Jain

From 0c34030166a150d6d9f1ab52e7bb40a5440a68c2 Mon Sep 17 00:00:00 2001
From: Rahul Jain <[email protected]>
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.