]> git.karo-electronics.de Git - karo-tx-linux.git/commit
HID: logitech-hidpp: do not return the name length
authorPeter Wu <peter@lekensteyn.nl>
Thu, 11 Dec 2014 12:51:17 +0000 (13:51 +0100)
committerJiri Kosina <jkosina@suse.cz>
Thu, 11 Dec 2014 22:10:00 +0000 (23:10 +0100)
commit02cc097e62d51bf6e5cb4209ca90d9bf68e358b5
tree6d375fc4b1fa942a10b22f6a3a039fd9f7cf64d2
parent552f12eb68440a0328dc9929066f6d0321a75874
HID: logitech-hidpp: do not return the name length

We do not make any use of the actual name length get through
hidpp_get_device_name(). Original patch by Benjamin Tissoires, this
patch also replaces a (now) unnecessary goto by return NULL.

Signed-off-by: Peter Wu <peter@lekensteyn.nl>
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-logitech-hidpp.c