wl12xx: silence tx_attr uninitialized warning in wl1271_tx_fill_hdr
authorJohn W. Linville <linville@tuxdriver.com>
Thu, 8 Dec 2011 21:15:58 +0000 (16:15 -0500)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 9 Dec 2011 19:57:49 +0000 (14:57 -0500)
  CC [M]  drivers/net/wireless/wl12xx/tx.o
drivers/net/wireless/wl12xx/tx.c: In function ‘wl1271_tx_fill_hdr’:
drivers/net/wireless/wl12xx/tx.c:288:6: warning: ‘tx_attr’ may be used uninitialized in this function

Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/wl12xx/tx.c

index 36eb0d66fd669fb44d2a70999c522a27c6830b19..7d727ee6ddf6216228af8f13bce9b3e710905ecb 100644 (file)
@@ -285,7 +285,7 @@ static void wl1271_tx_fill_hdr(struct wl1271 *wl, struct wl12xx_vif *wlvif,
        struct wl1271_tx_hw_descr *desc;
        int aligned_len, ac, rate_idx;
        s64 hosttime;
-       u16 tx_attr;
+       u16 tx_attr = 0;
        bool is_dummy;
 
        desc = (struct wl1271_tx_hw_descr *) skb->data;