]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
brcmfmac: fix uninitialized warning in brcmf_usb_probe_phase2()
authorArend Van Spriel <arend.vanspriel@broadcom.com>
Fri, 16 Jun 2017 08:36:35 +0000 (09:36 +0100)
committerKalle Valo <kvalo@codeaurora.org>
Fri, 16 Jun 2017 08:52:36 +0000 (11:52 +0300)
commit35abcd4f9f303ac4f10f99b3f7e993e5f2e6fa37
treebb3e0b03af4cd384f1ca3709a0447b7b406e2af4
parenta2b7a622d6292b693544d7c94bb5d11c3f4676f8
brcmfmac: fix uninitialized warning in brcmf_usb_probe_phase2()

This fixes the following warning:

  drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c: In function
  'brcmf_usb_probe_phase2':
  drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c:1198:2:
  warning: 'devinfo' may be used uninitialized in this function
  [-Wmaybe-uninitialized]
    mutex_unlock(&devinfo->dev_init_lock);

Fixes: 6d0507a777fb ("brcmfmac: add parameter to pass error code in firmware callback")
Cc: Stephen Rothwell <sfr@canb.auug.org.au>
Reported-by: Kalle Valo <kvalo@codeaurora.org>
Signed-off-by: Arend van Spriel <arend.vanspriel@broadcom.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c