* [PATCH] carl9170: fix init-self regression
@ 2010-11-20 15:53 Christian Lamparter
0 siblings, 0 replies; only message in thread
From: Christian Lamparter @ 2010-11-20 15:53 UTC (permalink / raw)
To: linux-wireless; +Cc: linville
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>
---
for wireless-next/wireless-testing.git
---
diff --git a/drivers/net/wireless/ath/carl9170/tx.c b/drivers/net/wireless/ath/carl9170/tx.c
index 688eede..aee5c9d 100644
--- a/drivers/net/wireless/ath/carl9170/tx.c
+++ b/drivers/net/wireless/ath/carl9170/tx.c
@@ -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;
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2010-11-20 15:19 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-20 15:53 [PATCH] carl9170: fix init-self regression Christian Lamparter
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).