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>
This commit is contained in:
parent
d313279228
commit
8e9ddbde9d
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user