brcmfmac: fix initialization of struct cfg80211_inform_bss variable
authorFranky Lin <franky.lin@broadcom.com>
Tue, 15 May 2018 09:14:44 +0000 (11:14 +0200)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 15 May 2018 15:03:35 +0000 (18:03 +0300)
This patch fixes a sparse warning "Using plain integer as NULL pointer"
about cfg80211_inform_bss structure initialization.

Reported-by: kbuild test robot <lkp@intel.com>
Reviewed-by: Arend van Spriel <arend.vanspriel@broadcom.com>
Signed-off-by: Franky Lin <franky.lin@broadcom.com>
Signed-off-by: Arend van Spriel <arend.vanspriel@broadcom.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c

index 84135dac49b39d5620aaa1b7916184bd85ee9776..f5b405c98047ea01bcfdbbd85f85a9c6b3476922 100644 (file)
@@ -2737,7 +2737,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");