Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 040fc001 authored by Colin Ian King's avatar Colin Ian King Committed by Jiri Kosina
Browse files

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")

Signed-off-by: default avatarColin Ian King <colin.king@canonical.com>
Reviewed-by: default avatarBenjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
parent a676bdc4
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -2654,9 +2654,6 @@ static int sony_input_configured(struct hid_device *hdev,
		ret = 0;
	}

	if (ret < 0)
		goto err_stop;

	if (sc->quirks & SONY_LED_SUPPORT) {
		ret = sony_leds_init(sc);
		if (ret < 0)