]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
mac80211: removing shadowed sband
authorTomas Winkler <tomas.winkler@intel.com>
Mon, 2 Jun 2008 17:31:57 +0000 (20:31 +0300)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 3 Jun 2008 19:00:29 +0000 (15:00 -0400)
This patch removes doubly defined sband variable

Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/tx.c

index 4214d039fbc6d2d4cf36e16561274450b8dfb5d8..1ad9e664f2875219de301106302bcc18723c5cb2 100644 (file)
@@ -612,13 +612,10 @@ ieee80211_tx_h_misc(struct ieee80211_tx_data *tx)
 
        if ((info->flags & IEEE80211_TX_CTL_USE_RTS_CTS) ||
            (info->flags & IEEE80211_TX_CTL_USE_CTS_PROTECT)) {
-               struct ieee80211_supported_band *sband;
                struct ieee80211_rate *rate;
                s8 baserate = -1;
                int idx;
 
-               sband = tx->local->hw.wiphy->bands[tx->channel->band];
-
                /* Do not use multiple retry rates when using RTS/CTS */
                info->control.alt_retry_rate_idx = -1;