HID: sony: remove redundant check for -ve err
authorColin Ian King <colin.king@canonical.com>
Mon, 27 Mar 2017 17:51:18 +0000 (18:51 +0100)
committerJiri Kosina <jkosina@suse.cz>
Thu, 6 Apr 2017 12:47:17 +0000 (14:47 +0200)
commit040fc001765d374776353cb4f8b03ea7fa41e3cd
tree057eb5e0c32fd43dc8a37043305d3129ac74c6e0
parenta676bdc422241822130364443a6a65b6520440ba
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>
drivers/hid/hid-sony.c