mwifiex: do not overwrite error code from lower layer driver
authorBing Zhao <bzhao@marvell.com>
Sat, 26 Jan 2013 02:23:00 +0000 (18:23 -0800)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 30 Jan 2013 20:07:05 +0000 (15:07 -0500)
commit5b2e2eccab80e2f56d06df582e473fb0d8630f35
tree29e778882c1742943f3a5201ab3903254b985843
parent3220712d3aa4f5df12b7305ce340f6d216a84477
mwifiex: do not overwrite error code from lower layer driver

Instead of converting it to a bogus error code -1, we should
return the original error code from lower layer driver. This
error code will be printed so it may give user some clues on
what has happened.

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