]> git.baikalelectronics.ru Git - kernel.git/commit
mwifiex: remove redundant reset of cmd_wait_q status
authorAndreas Fenkart <afenkart@gmail.com>
Fri, 17 Jul 2015 07:13:04 +0000 (09:13 +0200)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 6 Aug 2015 07:09:05 +0000 (10:09 +0300)
commit9a26d39794587a79dd43486f0779223c48c94ca9
tree91d21cb3be43f318ad801ba720ed1f670b8de235
parentb699f12e84c5a74325c17c6944f709adab8e5f92
mwifiex: remove redundant reset of cmd_wait_q status

mwifiex_cancel_pending_ioctl is called only from
mwifiex_cmd_timeout_func. There the wait_q status is set to
-ETIMEDWAIT before calling this function. Whether we reset the status
to -1 or leave it at -ETIMEDWAIT at end doesn't matter since both
are != 0 hence mean failure

Signed-off-by: Andreas Fenkart <afenkart@gmail.com>
Acked-by: Amitkumar Karwar <akarwar@marvell.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/mwifiex/cmdevt.c