From: Franky Lin Date: Tue, 15 May 2018 09:14:44 +0000 (+0200) Subject: FROMLIST: brcmfmac: fix initialization of struct cfg80211_inform_bss variable X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=aa9d23da410cef1d9e2c0a72298482bc9da8da5b;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git FROMLIST: brcmfmac: fix initialization of struct cfg80211_inform_bss variable This patch fixes a sparse warning "Using plain integer as NULL pointer" about cfg80211_inform_bss structure initialization. Reported-by: kbuild test robot Reviewed-by: Arend van Spriel Signed-off-by: Franky Lin Signed-off-by: Arend van Spriel Signed-off-by: Kalle Valo (cherry picked from commit 763ece85f45a6b93268e25a0abf02922f911dab4) Change-Id: If5a64df0fcaeb56435678a142b71a33e4f3e45b2 --- diff --git a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c index 3e888a030d03..624ecd1bc24f 100644 --- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c +++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c @@ -2850,7 +2850,7 @@ static s32 brcmf_inform_single_bss(struct brcmf_cfg80211_info *cfg, u16 notify_interval; u8 *notify_ie; size_t notify_ielen; - struct cfg80211_inform_bss bss_data = { 0 }; + struct cfg80211_inform_bss bss_data = {}; if (le32_to_cpu(bi->length) > WL_BSS_INFO_MAX) { brcmf_err("Bss info is larger than buffer. Discarding\n");