summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/b43/pio.c
diff options
context:
space:
mode:
authorJohn W. Linville <linville@tuxdriver.com>2011-08-24 21:05:14 +0200
committerJohn W. Linville <linville@tuxdriver.com>2011-08-26 16:47:57 +0200
commitc3e5fac8e54591d2e4585d3329ead61ba059eb1d (patch)
treea4b97876062280395fe7e192f2b42807dcec45fe /drivers/net/wireless/b43/pio.c
parentath9k: remove replicated null check in ath_pci_aspm_init (diff)
downloadlinux-c3e5fac8e54591d2e4585d3329ead61ba059eb1d.tar.xz
linux-c3e5fac8e54591d2e4585d3329ead61ba059eb1d.zip
b43: correct warning for uninitialized variable 'macstat'
CC [M] drivers/net/wireless/b43/pio.o drivers/net/wireless/b43/pio.c: In function ‘pio_rx_frame’: drivers/net/wireless/b43/pio.c:614:6: warning: ‘macstat’ may be used uninitialized in this function Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/b43/pio.c')
-rw-r--r--drivers/net/wireless/b43/pio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/b43/pio.c b/drivers/net/wireless/b43/pio.c
index ce8a4bdc7e1d..fcff923b3c18 100644
--- a/drivers/net/wireless/b43/pio.c
+++ b/drivers/net/wireless/b43/pio.c
@@ -611,7 +611,7 @@ static bool pio_rx_frame(struct b43_pio_rxqueue *q)
struct b43_wldev *dev = q->dev;
struct b43_wl *wl = dev->wl;
u16 len;
- u32 macstat;
+ u32 macstat = 0;
unsigned int i, padding;
struct sk_buff *skb;
const char *err_msg = NULL;