diff options
author | Shawn Lin | 2017-07-06 09:50:33 +0200 |
---|---|---|
committer | Kalle Valo | 2017-07-28 16:49:48 +0200 |
commit | f46a5b0156b166fcfdf05bca02d13bf482d95bf1 (patch) | |
tree | b272d5fe86f0faccb8991b9667a0ee55e5aef58f /README | |
parent | mwifiex: drop num CPU notice (diff) | |
download | kernel-qcow2-linux-f46a5b0156b166fcfdf05bca02d13bf482d95bf1.tar.gz kernel-qcow2-linux-f46a5b0156b166fcfdf05bca02d13bf482d95bf1.tar.xz kernel-qcow2-linux-f46a5b0156b166fcfdf05bca02d13bf482d95bf1.zip |
mwifiex: fix compile warning of unused variable
We got a compile warning shows below:
drivers/net/wireless/marvell/mwifiex/sdio.c: In function
'mwifiex_sdio_remove':
drivers/net/wireless/marvell/mwifiex/sdio.c:377:6: warning: variable
'ret' set but not used [-Wunused-but-set-variable]
Per the code, it didn't check if mwifiex_sdio_read_fw_status
finish successfully. We should at least check the return of
mwifiex_sdio_read_fw_status, otherwise the following check of
firmware_stat and adapter->mfg_mode is pointless as the device
is probably dead.
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Reviewed-by: Brian Norris <briannorris@chromium.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'README')
0 files changed, 0 insertions, 0 deletions