summaryrefslogtreecommitdiff
path: root/drivers/hid
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2017-03-27 20:51:18 +0300
committerJiri Kosina <jkosina@suse.cz>2017-04-06 15:47:17 +0300
commit040fc001765d374776353cb4f8b03ea7fa41e3cd (patch)
tree057eb5e0c32fd43dc8a37043305d3129ac74c6e0 /drivers/hid
parenta676bdc422241822130364443a6a65b6520440ba (diff)
downloadlinux-040fc001765d374776353cb4f8b03ea7fa41e3cd.tar.xz
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>
Diffstat (limited to 'drivers/hid')
-rw-r--r--drivers/hid/hid-sony.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/hid/hid-sony.c b/drivers/hid/hid-sony.c
index e90ce63897df..43213d6ff2d1 100644
--- a/drivers/hid/hid-sony.c
+++ b/drivers/hid/hid-sony.c
@@ -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)