mac80211: fix sparse complaint in ieee80211_sta_def_wmm_params
authorJohannes Berg <johannes@sipsolutions.net>
Mon, 31 Mar 2008 17:23:04 +0000 (19:23 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 1 Apr 2008 21:14:10 +0000 (17:14 -0400)
A variable 'i' is being shadowed by another one, but the second
one can just be removed.

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Cc: Vladimir Koutny <vlado@work.ksp.sk>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/ieee80211_sta.c

index 75b96a754333a35bc639059c778ec6ef4f7913a5..b836948a0b40e5a38426c4ca545b424b72b6139d 100644 (file)
@@ -244,7 +244,6 @@ static void ieee80211_sta_def_wmm_params(struct net_device *dev,
 
        if (local->ops->conf_tx) {
                struct ieee80211_tx_queue_params qparam;
-               int i;
 
                memset(&qparam, 0, sizeof(qparam));