2436bb8a8a1c812b43463ec512a2b4286c01a660
[openwrt/staging/mans0n.git] /
1 From 763ece85f45a6b93268e25a0abf02922f911dab4 Mon Sep 17 00:00:00 2001
2 From: Franky Lin <franky.lin@broadcom.com>
3 Date: Tue, 15 May 2018 11:14:44 +0200
4 Subject: [PATCH] brcmfmac: fix initialization of struct cfg80211_inform_bss
5 variable
6
7 This patch fixes a sparse warning "Using plain integer as NULL pointer"
8 about cfg80211_inform_bss structure initialization.
9
10 Reported-by: kbuild test robot <lkp@intel.com>
11 Reviewed-by: Arend van Spriel <arend.vanspriel@broadcom.com>
12 Signed-off-by: Franky Lin <franky.lin@broadcom.com>
13 Signed-off-by: Arend van Spriel <arend.vanspriel@broadcom.com>
14 Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
15 ---
16 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c | 2 +-
17 1 file changed, 1 insertion(+), 1 deletion(-)
18
19 --- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c
20 +++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c
21 @@ -2737,7 +2737,7 @@ static s32 brcmf_inform_single_bss(struc
22 u16 notify_interval;
23 u8 *notify_ie;
24 size_t notify_ielen;
25 - struct cfg80211_inform_bss bss_data = { 0 };
26 + struct cfg80211_inform_bss bss_data = {};
27
28 if (le32_to_cpu(bi->length) > WL_BSS_INFO_MAX) {
29 brcmf_err("Bss info is larger than buffer. Discarding\n");