]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commitdiff
carl9170: fix init-self regression
authorChristian Lamparter <chunkeey@googlemail.com>
Sat, 20 Nov 2010 15:53:26 +0000 (16:53 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 22 Nov 2010 20:58:41 +0000 (15:58 -0500)
The commit: "carl9170: tx path review" introduced a regression.

gcc (with -Winit-self):
tx.c:1264: warning: ‘super’ is used uninitialized in this function

Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/carl9170/tx.c

index 688eede48516a56c19dd72687103feee95e8746b..aee5c9d89a144c9da093c52ad577097d6f064b42 100644 (file)
@@ -1261,7 +1261,7 @@ static void carl9170_tx(struct ar9170 *ar)
 static bool carl9170_tx_ampdu_queue(struct ar9170 *ar,
        struct ieee80211_sta *sta, struct sk_buff *skb)
 {
-       struct _carl9170_tx_superframe *super = (void *) super;
+       struct _carl9170_tx_superframe *super = (void *) skb->data;
        struct carl9170_sta_info *sta_info;
        struct carl9170_sta_tid *agg;
        struct sk_buff *iter;