Commit 8e9ddbde authored by Colin Ian King's avatar Colin Ian King Committed by Jiri Kosina
Browse files

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: default avatarColin Ian King <colin.king@canonical.com>
Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
parent d3132792
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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)