summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/rsi
diff options
context:
space:
mode:
authorJohan Hovold <johan@kernel.org>2019-10-04 17:44:21 +0300
committerKalle Valo <kvalo@codeaurora.org>2019-10-09 11:23:45 +0300
commitc5dcf8f0e850a504235a0af51f73d51b6ddc0933 (patch)
tree8e2da4632c73b117fb8618e911066bf5dcf1f771 /drivers/net/wireless/rsi
parent4614239cba34b28cb2d95d60c6f4498f39e533dd (diff)
downloadlinux-c5dcf8f0e850a504235a0af51f73d51b6ddc0933.tar.xz
Revert "rsi: fix potential null dereference in rsi_probe()"
This reverts commit f170d44bc4ec2feae5f6206980e7ae7fbf0432a0. USB core will never call a USB-driver probe function with a NULL device-id pointer. Reverting before removing the existing checks in order to document this and prevent the offending commit from being "autoselected" for stable. Signed-off-by: Johan Hovold <johan@kernel.org> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers/net/wireless/rsi')
-rw-r--r--drivers/net/wireless/rsi/rsi_91x_usb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/rsi/rsi_91x_usb.c b/drivers/net/wireless/rsi/rsi_91x_usb.c
index 23a1d00b5f38..760eaffeebd6 100644
--- a/drivers/net/wireless/rsi/rsi_91x_usb.c
+++ b/drivers/net/wireless/rsi/rsi_91x_usb.c
@@ -793,7 +793,7 @@ static int rsi_probe(struct usb_interface *pfunction,
adapter->device_model = RSI_DEV_9116;
} else {
rsi_dbg(ERR_ZONE, "%s: Unsupported RSI device id 0x%x\n",
- __func__, id ? id->idProduct : 0x0);
+ __func__, id->idProduct);
goto err1;
}