]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
commited1ab6ff213a701d4a635883c63e0d6fcbbab27d
treef42216981023dfffcaffb066491546b00ffa6e01
parent25bdbfbb2d8331a67824dd03d0087e9c98835f3a
HID: thrustmaster: fix return value check in thrustmaster_probe()

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

Fixes: c49c33637802 ("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