Skip to content

Commit 8f2828d

Browse files
tititiou36Jiri Kosina
authored andcommitted
HID: logitech-hidpp: avoid duplicate error handling code in 'hidpp_probe()'
'hid_hw_stop()' is already in the error handling path when branching to the 'hid_hw_open_fail' label. There is no point in calling it twice, so remove one. Signed-off-by: Christophe JAILLET <[email protected]> Signed-off-by: Jiri Kosina <[email protected]>
1 parent be28136 commit 8f2828d

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

drivers/hid/hid-logitech-hidpp.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3817,7 +3817,6 @@ static int hidpp_probe(struct hid_device *hdev, const struct hid_device_id *id)
38173817
if (ret < 0) {
38183818
dev_err(&hdev->dev, "%s:hid_hw_open returned error:%d\n",
38193819
__func__, ret);
3820-
hid_hw_stop(hdev);
38213820
goto hid_hw_open_fail;
38223821
}
38233822

0 commit comments

Comments
 (0)