1234567891011121314151617181920212223242526272829 |
- From 763ece85f45a6b93268e25a0abf02922f911dab4 Mon Sep 17 00:00:00 2001
- From: Franky Lin <[email protected]>
- Date: Tue, 15 May 2018 11:14:44 +0200
- Subject: [PATCH] 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 <[email protected]>
- Reviewed-by: Arend van Spriel <[email protected]>
- Signed-off-by: Franky Lin <[email protected]>
- Signed-off-by: Arend van Spriel <[email protected]>
- Signed-off-by: Kalle Valo <[email protected]>
- ---
- drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
- --- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c
- +++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c
- @@ -2737,7 +2737,7 @@ static s32 brcmf_inform_single_bss(struc
- 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");
|