b43: correct warning for uninitialized variable 'macstat'
authorJohn W. Linville <linville@tuxdriver.com>
Wed, 24 Aug 2011 19:05:14 +0000 (15:05 -0400)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 26 Aug 2011 14:47:57 +0000 (10:47 -0400)
  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>
drivers/net/wireless/b43/pio.c

index ce8a4bdc7e1dbe5e1364b36f5d730c50161d9ed7..fcff923b3c18b25d44ae4e266747825b8b571ebf 100644 (file)
@@ -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;