Search Linux Wireless

[PATCH 1/4] mac80211: remove unused code

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Remove code that is commented out and doesn't even compile when uncommented.

Signed-off-by: Jiri Benc <jbenc@xxxxxxx>

---
 net/mac80211/ieee80211_ioctl.c |    8 --------
 1 files changed, 8 deletions(-)

--- dscape.orig/net/mac80211/ieee80211_ioctl.c
+++ dscape/net/mac80211/ieee80211_ioctl.c
@@ -1025,14 +1025,6 @@ static int ieee80211_ioctl_add_if(struct
 
 		res = ieee80211_if_add(dev, param->u.if_info.name, NULL,
 				       IEEE80211_IF_TYPE_VLAN);
-		if (res)
-			return res;
-#if 0
-		res = ieee80211_if_update_vlan(new_dev, vlan->id);
-		if (res)
-			__ieee80211_if_del(wdev_priv(dev->ieee80211_ptr),
-					   IEEE80211_DEV_TO_SUB_IF(new_dev));
-#endif
 		return res;
 	case HOSTAP_IF_BSS:
 		bss = (struct hostapd_if_bss *) param->u.if_info.data;

-
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux