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
2654 ret = 0;2654 ret = 0;
2655 }2655 }
2656 2656
2657 if (ret < 0)
2658 goto err_stop;
2659
2660 if (sc->quirks & SONY_LED_SUPPORT) {2657 if (sc->quirks & SONY_LED_SUPPORT) {
2661 ret = sony_leds_init(sc);2658 ret = sony_leds_init(sc);
2662 if (ret < 0)2659 if (ret < 0)