Ver código fonte

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: Colin Ian King <colin.king@canonical.com>
Reviewed-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Colin Ian King 8 anos atrás
pai
commit
040fc00176
1 arquivos alterados com 0 adições e 3 exclusões
  1. 0 3
      drivers/hid/hid-sony.c

+ 0 - 3
drivers/hid/hid-sony.c

@@ -2654,9 +2654,6 @@ static int sony_input_configured(struct hid_device *hdev,
 		ret = 0;
 		ret = 0;
 	}
 	}
 
 
-	if (ret < 0)
-		goto err_stop;
-
 	if (sc->quirks & SONY_LED_SUPPORT) {
 	if (sc->quirks & SONY_LED_SUPPORT) {
 		ret = sony_leds_init(sc);
 		ret = sony_leds_init(sc);
 		if (ret < 0)
 		if (ret < 0)