]> 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)
commit5484618e96d6f498dff793bce04bbd572c9c1eb5
tree6d375fc4b1fa942a10b22f6a3a039fd9f7cf64d2
parent1ae990e91d8684c8fc941086b1b4f3353ecd8ff2
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