333-v4.18-0001-brcmfmac-fix-initialization-of-struct-cfg80211_infor.patch 1.2 KB

1234567891011121314151617181920212223242526272829
  1. From 763ece85f45a6b93268e25a0abf02922f911dab4 Mon Sep 17 00:00:00 2001
  2. From: Franky Lin <[email protected]>
  3. Date: Tue, 15 May 2018 11:14:44 +0200
  4. Subject: [PATCH] brcmfmac: fix initialization of struct cfg80211_inform_bss
  5. variable
  6. This patch fixes a sparse warning "Using plain integer as NULL pointer"
  7. about cfg80211_inform_bss structure initialization.
  8. Reported-by: kbuild test robot <[email protected]>
  9. Reviewed-by: Arend van Spriel <[email protected]>
  10. Signed-off-by: Franky Lin <[email protected]>
  11. Signed-off-by: Arend van Spriel <[email protected]>
  12. Signed-off-by: Kalle Valo <[email protected]>
  13. ---
  14. drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c | 2 +-
  15. 1 file changed, 1 insertion(+), 1 deletion(-)
  16. --- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c
  17. +++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c
  18. @@ -2737,7 +2737,7 @@ static s32 brcmf_inform_single_bss(struc
  19. u16 notify_interval;
  20. u8 *notify_ie;
  21. size_t notify_ielen;
  22. - struct cfg80211_inform_bss bss_data = { 0 };
  23. + struct cfg80211_inform_bss bss_data = {};
  24. if (le32_to_cpu(bi->length) > WL_BSS_INFO_MAX) {
  25. brcmf_err("Bss info is larger than buffer. Discarding\n");