Search Linux Wireless

Re: [PATCH] mac80211: remove useless sdata variable

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

 



Johannes Berg <johannes@xxxxxxxxxxxxxxxx> writes:

> Dunno why I slipped that variable in...

Perhaps because it is used?

> --- everything.orig/net/mac80211/ieee80211_sta.c	2007-12-21 01:02:11.253160428 +0100
> +++ everything/net/mac80211/ieee80211_sta.c	2007-12-21 01:02:32.113165907 +0100
> @@ -458,12 +458,10 @@ static void ieee80211_set_associated(str
>  		return;
>  
>  	if (assoc) {
> -		struct ieee80211_sub_if_data *sdata;
>  		struct ieee80211_sta_bss *bss;
>  
>  		ifsta->flags |= IEEE80211_STA_ASSOCIATED;
>  
> -		sdata = IEEE80211_DEV_TO_SUB_IF(dev);
>  		if (sdata->vif.type != IEEE80211_IF_TYPE_STA)
                    ^^^^^

Andreas.

-- 
Andreas Schwab, SuSE Labs, schwab@xxxxxxx
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."
-
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