summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/broadcom
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2016-03-15 10:06:10 +0300
committerKalle Valo <kvalo@codeaurora.org>2016-04-06 21:27:16 +0300
commit977bc523000d51693c4b083463dc93bbb692a662 (patch)
tree28a92daa135d7a477f64bcae0e0ef79d637e62fa /drivers/net/wireless/broadcom
parentf8df33da2c9bbea3a72dff5326bb5de2ef8392d6 (diff)
downloadlinux-stable-977bc523000d51693c4b083463dc93bbb692a662.tar.gz
linux-stable-977bc523000d51693c4b083463dc93bbb692a662.tar.bz2
linux-stable-977bc523000d51693c4b083463dc93bbb692a662.zip
brcmfmac: uninitialized "ret" variable
There is an error path where "ret" isn't initialized. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers/net/wireless/broadcom')
-rw-r--r--drivers/net/wireless/broadcom/brcm80211/brcmfmac/bcmsdh.c2
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 da0cdd313880..2fc0597f2cd0 100644
--- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/bcmsdh.c
+++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/bcmsdh.c
@@ -250,7 +250,7 @@ static int brcmf_sdiod_request_data(struct brcmf_sdio_dev *sdiodev, u8 fn,
u32 addr, u8 regsz, void *data, bool write)
{
struct sdio_func *func;
- int ret;
+ int ret = -EINVAL;
brcmf_dbg(SDIO, "rw=%d, func=%d, addr=0x%05x, nbytes=%d\n",
write, fn, addr, regsz);