]> git.baikalelectronics.ru Git - kernel.git/commit
HID: usbhid: remove redundant assignment to variable retval
authorColin Ian King <colin.king@canonical.com>
Wed, 10 Jun 2020 12:31:01 +0000 (13:31 +0100)
committerJiri Kosina <jkosina@suse.cz>
Tue, 16 Jun 2020 15:16:44 +0000 (17:16 +0200)
commite0986651835c604f5362bd8c60d36438fc130463
tree01328ba553f44f8c820c1e73882fbf2eed408181
parent26475bce39d8f9a81017f31b5822a5ce8cca3999
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>
drivers/hid/usbhid/hid-core.c