mwifiex: Fix request_irq() failure handling
authorKarthik D A <karthida@marvell.com>
Fri, 15 Jul 2016 12:48:39 +0000 (18:18 +0530)
committerKalle Valo <kvalo@codeaurora.org>
Mon, 18 Jul 2016 19:42:19 +0000 (22:42 +0300)
commit2af86f9d954ee86e9b1c492e025de37a1b6d2db8
tree9fefab696e73fde9b0aa4b7db52e9efec76f2f6d
parentfd3ed33f51c2a586412d35b4f64803f019ab589f
mwifiex: Fix request_irq() failure handling

It's been observed that request_irq() failure leads to a system crash
due to a bug in mwifiex driver.
When this failure happens, mwifiex_add_card() already takes care of
clearing and freeing adapter->card pointer. This patch removes the
redundant cleanup code causing crash.

Signed-off-by: Karthik D A <karthida@marvell.com>
Signed-off-by: Amitkumar Karwar <akarwar@marvell.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/marvell/mwifiex/pcie.c