diff options
author | Arend Van Spriel <arend.vanspriel@broadcom.com> | 2016-09-19 07:09:54 -0400 |
---|---|---|
committer | Kalle Valo <kvalo@codeaurora.org> | 2016-09-26 13:35:53 -0400 |
commit | 26305d3d7298d1ddf8fd4ce95a382aa90534f0a3 (patch) | |
tree | 8ce43b57882f7e13bfaf42f46929b8e505c157ee /drivers/net | |
parent | bc981641360183990de59da17f9f560f9150b801 (diff) |
brcmfmac: initialize variable in brcmf_sdiod_regrl()
In case of an error the variable returned is uninitialized. The caller
will probably check the error code before using it, but better assure
it is set to zero.
Reviewed-by: Hante Meuleman <hante.meuleman@broadcom.com>
Reviewed-by: Pieter-Paul Giesberts <pieter-paul.giesberts@broadcom.com>
Signed-off-by: Arend van Spriel <arend.vanspriel@broadcom.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/wireless/broadcom/brcm80211/brcmfmac/bcmsdh.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/bcmsdh.c b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/bcmsdh.c index 03404cbe9237..72139b579b18 100644 --- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/bcmsdh.c +++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/bcmsdh.c | |||
@@ -420,7 +420,7 @@ u8 brcmf_sdiod_regrb(struct brcmf_sdio_dev *sdiodev, u32 addr, int *ret) | |||
420 | 420 | ||
421 | u32 brcmf_sdiod_regrl(struct brcmf_sdio_dev *sdiodev, u32 addr, int *ret) | 421 | u32 brcmf_sdiod_regrl(struct brcmf_sdio_dev *sdiodev, u32 addr, int *ret) |
422 | { | 422 | { |
423 | u32 data; | 423 | u32 data = 0; |
424 | int retval; | 424 | int retval; |
425 | 425 | ||
426 | brcmf_dbg(SDIO, "addr:0x%08x\n", addr); | 426 | brcmf_dbg(SDIO, "addr:0x%08x\n", addr); |