Skip to content

Commit 763ece8

Browse files
zflamKalle Valo
authored andcommitted
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]>
1 parent 66cffd6 commit 763ece8

File tree

1 file changed

+1
-1
lines changed
  • drivers/net/wireless/broadcom/brcm80211/brcmfmac

1 file changed

+1
-1
lines changed

drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2737,7 +2737,7 @@ static s32 brcmf_inform_single_bss(struct brcmf_cfg80211_info *cfg,
27372737
u16 notify_interval;
27382738
u8 *notify_ie;
27392739
size_t notify_ielen;
2740-
struct cfg80211_inform_bss bss_data = { 0 };
2740+
struct cfg80211_inform_bss bss_data = {};
27412741

27422742
if (le32_to_cpu(bi->length) > WL_BSS_INFO_MAX) {
27432743
brcmf_err("Bss info is larger than buffer. Discarding\n");

0 commit comments

Comments
 (0)