[PATCH] ieee80211: Fix sparse warning
authorLarry Finger <Larry.Finger@lwfinger.net>
Thu, 1 Feb 2007 00:50:19 +0000 (18:50 -0600)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 9 Feb 2007 19:57:16 +0000 (14:57 -0500)
Sparse issues the warning "warning: symbol 'crypt' shadows an earlier one"
in net/ieee80211/ieee80211_tx.c.

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/ieee80211/ieee80211_tx.c

index 854fc13cd78d0b057dbf40812293f86b1a0716cb..54e01160166ff2c4ecc475f0ae9ec8a75e1b7def 100644 (file)
@@ -502,9 +502,6 @@ int ieee80211_xmit(struct sk_buff *skb, struct net_device *dev)
                if (host_encrypt)
                        ieee80211_encrypt_fragment(ieee, skb_frag, hdr_len);
                else if (host_build_iv) {
-                       struct ieee80211_crypt_data *crypt;
-
-                       crypt = ieee->crypt[ieee->tx_keyidx];
                        atomic_inc(&crypt->refcnt);
                        if (crypt->ops->build_iv)
                                crypt->ops->build_iv(skb_frag, hdr_len,