Skip to content

Commit

Permalink
wl12xx: silence tx_attr uninitialized warning in wl1271_tx_fill_hdr
Browse files Browse the repository at this point in the history
  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>
  • Loading branch information
John W. Linville committed Dec 9, 2011
1 parent f589cf4 commit cf00f37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/wireless/wl12xx/tx.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit cf00f37

Please sign in to comment.