]> git.baikalelectronics.ru Git - kernel.git/commit
HID: thrustmaster: fix return value check in thrustmaster_probe()
authorWei Yongjun <weiyongjun1@huawei.com>
Fri, 2 Apr 2021 09:40:41 +0000 (09:40 +0000)
committerJiri Kosina <jkosina@suse.cz>
Wed, 5 May 2021 12:26:38 +0000 (14:26 +0200)
commitc24abaf0bb9bc9bf046147d425e9841c7821690d
treef42216981023dfffcaffb066491546b00ffa6e01
parent7df778287979fe50042044acbc28dfabe1311e4d
HID: thrustmaster: fix return value check in thrustmaster_probe()

Fix the return value check which testing the wrong variable
in thrustmaster_probe().

Fixes: 8c846363cae1 ("HID: support for initialization of some Thrustmaster wheels")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-thrustmaster.c