Skip to content

Commit 8e9ddbd

Browse files
Colin Ian KingJiri Kosina
authored andcommitted
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 <[email protected]> Signed-off-by: Jiri Kosina <[email protected]>
1 parent d313279 commit 8e9ddbd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/hid/usbhid/hid-core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1672,7 +1672,7 @@ struct usb_interface *usbhid_find_interface(int minor)
16721672

16731673
static int __init hid_init(void)
16741674
{
1675-
int retval = -ENOMEM;
1675+
int retval;
16761676

16771677
retval = hid_quirks_init(quirks_param, BUS_USB, MAX_USBHID_BOOT_QUIRKS);
16781678
if (retval)

0 commit comments

Comments
 (0)