summaryrefslogtreecommitdiff
path: root/drivers/hid
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2020-06-10 13:31:01 +0100
committerJiri Kosina <jkosina@suse.cz>2020-06-16 17:16:44 +0200
commit8e9ddbde9ddbba74c86b0c5f8eefb26192b3242e (patch)
tree01328ba553f44f8c820c1e73882fbf2eed408181 /drivers/hid
parentd3132792285859253c466354fd8d54d1fe0ba786 (diff)
HID: usbhid: remove redundant assignment to variable retval
The variable retval is being initialized with a value that is never read and it is being updated later with a new value. The initialization is redundant and can be removed. Addresses-Coverity: ("Unused value") Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/hid')
-rw-r--r--drivers/hid/usbhid/hid-core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hid/usbhid/hid-core.c b/drivers/hid/usbhid/hid-core.c
index 1235288b65bf..492dd641a25d 100644
--- a/drivers/hid/usbhid/hid-core.c
+++ b/drivers/hid/usbhid/hid-core.c
@@ -1672,7 +1672,7 @@ struct usb_interface *usbhid_find_interface(int minor)
static int __init hid_init(void)
{
- int retval = -ENOMEM;
+ int retval;
retval = hid_quirks_init(quirks_param, BUS_USB, MAX_USBHID_BOOT_QUIRKS);
if (retval)