]> git.baikalelectronics.ru Git - kernel.git/commit
mwifiex: correction in mwifiex_check_fw_status() return status
authorAmitkumar Karwar <akarwar@marvell.com>
Tue, 23 Jul 2013 02:17:54 +0000 (19:17 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 24 Jul 2013 15:02:10 +0000 (11:02 -0400)
commite6bd3a9ca54119ba02a73fbf42ef694a74e8bca6
tree58e74743868c6bbcdb9d5572373ac16844ffdd2e
parent0924adb45236496536425dd3f5a43d43d90f35f0
mwifiex: correction in mwifiex_check_fw_status() return status

For PCIe cards, when wrong firmware is downloaded, firmware is
failed to be ready in 10 seconds. We should return an error at
this point. But currently we are sending first command to firmware.
As expected firmware doesn't respond to this command and command
timeout occurs.

This patch fixes the problem by removing unnecessary 'ret'
variable modifications in "if (ret) {" block.
The block is just supposed to update "adapter->winner" flag.

Signed-off-by: Amitkumar Karwar <akarwar@marvell.com>
Signed-off-by: Bing Zhao <bzhao@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/mwifiex/pcie.c