mirror of
https://github.com/torvalds/linux.git
synced 2026-06-08 22:52:35 +02:00
net: wireless: bcmdhd: Fix build break with newer versions of gcc
In case the WPA cipher can't be determined the pval and gval variables don't get updated which generates a warning in newer versions of gcc (tested with 4.5.2). Since the bcmdhd driver gets compiled with warnings treated as errors this change is needed to fix the build. Change-Id: Ia483777fee54ac526bb0db7c666fa2bf5df17354 Signed-off-by: Rom Lemarchand <rlemarchand@sta.samsung.com>
This commit is contained in:
parent
c95d86dacd
commit
85ffb3696e
|
|
@ -3091,8 +3091,8 @@ wl_check_wpa2ie(struct net_device *dev, bcm_tlv_t *wpa2ie, s32 bssidx)
|
|||
u16 wpa_auth = 0;
|
||||
u16 count;
|
||||
u32 wsec;
|
||||
u32 pval;
|
||||
u32 gval;
|
||||
u32 pval = 0;
|
||||
u32 gval = 0;
|
||||
u8* tmp;
|
||||
wpa_suite_mcast_t *mcast;
|
||||
wpa_suite_ucast_t *ucast;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user