brcmfmac: Rename bcmerror to err
authorIan Molton <ian@mnementh.co.uk>
Mon, 13 Nov 2017 20:35:47 +0000 (21:35 +0100)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 7 Dec 2017 13:10:57 +0000 (15:10 +0200)
Trivial cleanup of nasty variable name

Signed-off-by: Ian Molton <ian@mnementh.co.uk>
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 9a3f903e838348c0d675ba0e0d8d4946170357ea..30ab0aa7a2403893bb6f66e939663c98ba11d50f 100644 (file)
@@ -746,7 +746,7 @@ int
 brcmf_sdiod_ramrw(struct brcmf_sdio_dev *sdiodev, bool write, u32 address,
                  u8 *data, uint size)
 {
-       int bcmerror = 0;
+       int err = 0;
        struct sk_buff *pkt;
        u32 sdaddr;
        uint dsize;
@@ -771,8 +771,8 @@ brcmf_sdiod_ramrw(struct brcmf_sdio_dev *sdiodev, bool write, u32 address,
        /* Do the transfer(s) */
        while (size) {
                /* Set the backplane window to include the start address */
-               bcmerror = brcmf_sdiod_set_sbaddr_window(sdiodev, address);
-               if (bcmerror)
+               err = brcmf_sdiod_set_sbaddr_window(sdiodev, address);
+               if (err)
                        break;
 
                brcmf_dbg(SDIO, "%s %d bytes at offset 0x%08x in window 0x%08x\n",
@@ -785,9 +785,9 @@ brcmf_sdiod_ramrw(struct brcmf_sdio_dev *sdiodev, bool write, u32 address,
                skb_put(pkt, dsize);
                if (write)
                        memcpy(pkt->data, data, dsize);
-               bcmerror = brcmf_sdiod_buffrw(sdiodev, SDIO_FUNC_1, write,
-                                             sdaddr, pkt);
-               if (bcmerror) {
+               err = brcmf_sdiod_buffrw(sdiodev, SDIO_FUNC_1, write, sdaddr,
+                                        pkt);
+               if (err) {
                        brcmf_err("membytes transfer failed\n");
                        break;
                }
@@ -814,7 +814,7 @@ brcmf_sdiod_ramrw(struct brcmf_sdio_dev *sdiodev, bool write, u32 address,
 
        sdio_release_host(sdiodev->func[1]);
 
-       return bcmerror;
+       return err;
 }
 
 int brcmf_sdiod_abort(struct brcmf_sdio_dev *sdiodev, u8 fn)