brcmfmac: Fix asymmetric IO functions.
authorIan Molton <ian@mnementh.co.uk>
Mon, 13 Nov 2017 20:35:45 +0000 (21:35 +0100)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 7 Dec 2017 13:10:55 +0000 (15:10 +0200)
Unlikely to be a problem, but brcmf_sdiod_regrl() is
not symmetric with brcmf_sdiod_regrb() in initializing
the data value on stack. Fix that.

Signed-off-by: Ian Molton <ian@mnementh.co.uk>
[arend: reword the commit message a bit]
Signed-off-by: Arend van Spriel <arend.vanspriel@broadcom.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/broadcom/brcm80211/brcmfmac/bcmsdh.c

index bb2ebe6..e89e242 100644 (file)
@@ -383,7 +383,7 @@ u8 brcmf_sdiod_regrb(struct brcmf_sdio_dev *sdiodev, u32 addr, int *ret)
 
 u32 brcmf_sdiod_regrl(struct brcmf_sdio_dev *sdiodev, u32 addr, int *ret)
 {
-       u32 data = 0;
+       u32 data;
        int retval;
 
        brcmf_dbg(SDIO, "addr:0x%08x\n", addr);