rsi: fix error return code in rsi_reset_card()
authorZhang Changzhong <zhangchangzhong@huawei.com>
Tue, 17 Nov 2020 03:07:34 +0000 (11:07 +0800)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 24 Nov 2020 15:04:58 +0000 (17:04 +0200)
commitfb21d14694bd46a538258d86498736490b3ba855
tree1f0fb67272e3949682752f5f428aa29e10060f84
parent01c195de620bb6c3ecda0dbf295fe685d8232e10
rsi: fix error return code in rsi_reset_card()

Fix to return a negative error code from the error handling
case instead of 0, as done elsewhere in this function.

Fixes: 17ff2c794f39 ("rsi: reset device changes for 9116")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Zhang Changzhong <zhangchangzhong@huawei.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/1605582454-39649-1-git-send-email-zhangchangzhong@huawei.com
drivers/net/wireless/rsi/rsi_91x_usb.c