From: Geert Uytterhoeven Date: Sat, 22 Dec 2012 21:07:14 +0000 (+0100) Subject: brcmsmac: initialize morepending in brcms_b_recv() X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=c2397bb0c55495d8474c36143fdaced5c435a5e4;p=openwrt%2Fstaging%2Fblogic.git brcmsmac: initialize morepending in brcms_b_recv() drivers/net/wireless/brcm80211/brcmsmac/main.c: In function ‘brcms_b_recv’: drivers/net/wireless/brcm80211/brcmsmac/main.c:7636: warning: ‘morepending’ may be used uninitialized in this function Signed-off-by: Geert Uytterhoeven Acked-by: Arend van Spriel Signed-off-by: John W. Linville --- diff --git a/drivers/net/wireless/brcm80211/brcmsmac/main.c b/drivers/net/wireless/brcm80211/brcmsmac/main.c index 17594de4199e..5f0f444f85a3 100644 --- a/drivers/net/wireless/brcm80211/brcmsmac/main.c +++ b/drivers/net/wireless/brcm80211/brcmsmac/main.c @@ -7633,7 +7633,7 @@ brcms_b_recv(struct brcms_hardware *wlc_hw, uint fifo, bool bound) uint n = 0; uint bound_limit = bound ? RXBND : -1; - bool morepending; + bool morepending = false; skb_queue_head_init(&recv_frames);