]> git.baikalelectronics.ru Git - kernel.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)
commit18b9cbbd5a8ce7facb69f2e5e048fb310a68ce0c
tree6d375fc4b1fa942a10b22f6a3a039fd9f7cf64d2
parent0eceda4909e3caf4ed104ab43d5119a2d11d9f5a
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