mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
rsi: fix an error code in rsi_probe()
Return -ENODEV instead of success for unsupported devices.
Fixes: 54fdb318c1
("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
This commit is contained in:
parent
d0f8430332
commit
9adcdf6758
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue