mirror of
https://github.com/torvalds/linux.git
synced 2026-06-06 13:37:36 +02:00
rsi: fix an error code in rsi_probe()
[ Upstream commit9adcdf6758] 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 Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
110ce7d256
commit
56d976f450
|
|
@ -814,6 +814,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…
Reference in New Issue
Block a user