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
7 This patch fixes a sparse warning "Using plain integer as NULL pointer"
8 about cfg80211_inform_bss structure initialization.
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>
16 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c | 2 +-
17 1 file changed, 1 insertion(+), 1 deletion(-)
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
25 - struct cfg80211_inform_bss bss_data = { 0 };
26 + struct cfg80211_inform_bss bss_data = {};
28 if (le32_to_cpu(bi->length) > WL_BSS_INFO_MAX) {
29 brcmf_err("Bss info is larger than buffer. Discarding\n");