]> git.baikalelectronics.ru Git - kernel.git/commit
HID: alps: fix error return code in alps_input_configured()
authorWei Yongjun <weiyongjun1@huawei.com>
Wed, 21 Sep 2016 15:12:05 +0000 (15:12 +0000)
committerJiri Kosina <jkosina@suse.cz>
Thu, 22 Sep 2016 09:10:06 +0000 (11:10 +0200)
commit4b68b1ca7ec084c12e05e6bb24f9d3146058304b
tree76b3e8992d478809ad03cb8ee999bad8eb53c14b
parenta245e7d28f3eb569a33d808a72d67699748e64b0
HID: alps: fix error return code in alps_input_configured()

Fix to return a negative error code from the error handling
case instead of 0, as done elsewhere in this function.

While at it, remove redundant input_free_device(NULL) call.

[jkosina@suse.cz: ammend changelog]
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Reviewed-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-alps.c