diff options
-rw-r--r-- | drivers/hid/hid-logitech-hidpp.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/hid/hid-logitech-hidpp.c b/drivers/hid/hid-logitech-hidpp.c index 8e9cb25f45cb..b3cf6fd4be96 100644 --- a/drivers/hid/hid-logitech-hidpp.c +++ b/drivers/hid/hid-logitech-hidpp.c | |||
@@ -1220,6 +1220,7 @@ static int hidpp_probe(struct hid_device *hdev, const struct hid_device_id *id) | |||
1220 | connected = hidpp_is_connected(hidpp); | 1220 | connected = hidpp_is_connected(hidpp); |
1221 | if (id->group != HID_GROUP_LOGITECH_DJ_DEVICE) { | 1221 | if (id->group != HID_GROUP_LOGITECH_DJ_DEVICE) { |
1222 | if (!connected) { | 1222 | if (!connected) { |
1223 | ret = -ENODEV; | ||
1223 | hid_err(hdev, "Device not connected"); | 1224 | hid_err(hdev, "Device not connected"); |
1224 | hid_device_io_stop(hdev); | 1225 | hid_device_io_stop(hdev); |
1225 | goto hid_parse_fail; | 1226 | goto hid_parse_fail; |