History

HID: sony: remove redundant check for -ve err

err is being checked for failure each time it is being updated so this err check is totally redundant and can be removed Detected with CoverityScan, CID#1420665 ("Logically dead code")

Colin Ian King committed 9 years ago

Commit 040fc001 parent a676bdc1 file · +0 −3Browse files

Unified · Split

drivers/hid/hid-sony.c+0−3
@@ -2654,9 +2654,6 @@ static int sony_input_configured(struct hid_device *hdev, · 2653 unmodified lines
26542654 ret = 0;
26552655 }
26562656
2657− if (ret < 0)
2658− goto err_stop;
2659−
26602657 if (sc->quirks & SONY_LED_SUPPORT) {
26612658 ret = sony_leds_init(sc);
26622659 if (ret < 0)