diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2021-08-16 20:39:47 +0200 |
---|---|---|
committer | Kalle Valo <kvalo@codeaurora.org> | 2021-08-21 19:27:48 +0200 |
commit | 9adcdf6758d7c4c9bdaf22d78eb9fcae260ed113 (patch) | |
tree | a7346be328ae5cb97a953fd254c31db3c4b77ff0 | |
parent | rsi: fix error code in rsi_load_9116_firmware() (diff) | |
download | linux-9adcdf6758d7c4c9bdaf22d78eb9fcae260ed113.tar.xz linux-9adcdf6758d7c4c9bdaf22d78eb9fcae260ed113.zip |
rsi: fix an error code in rsi_probe()
Return -ENODEV instead of success for unsupported devices.
Fixes: 54fdb318c111 ("rsi: add new device model for 9116")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20210816183947.GA2119@kili
-rw-r--r-- | drivers/net/wireless/rsi/rsi_91x_usb.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/wireless/rsi/rsi_91x_usb.c b/drivers/net/wireless/rsi/rsi_91x_usb.c index 3fbe2a3c1455..416976f09888 100644 --- a/drivers/net/wireless/rsi/rsi_91x_usb.c +++ b/drivers/net/wireless/rsi/rsi_91x_usb.c @@ -816,6 +816,7 @@ static int rsi_probe(struct usb_interface *pfunction, } else { rsi_dbg(ERR_ZONE, "%s: Unsupported RSI device id 0x%x\n", __func__, id->idProduct); + status = -ENODEV; goto err1; } |