HID: do not use down_interruptible() when unbinding devices
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Sat, 20 Mar 2021 00:27:16 +0000 (17:27 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 14 Jul 2021 14:55:57 +0000 (16:55 +0200)
commit2c0285062dd7d1bf71d5db38177d2da481d306ce
tree9bec8ef82f717e3eb4bf289a760bf7816bf14b60
parent51b7499cecc48b9a32eaa1c062bc2020164e0c88
HID: do not use down_interruptible() when unbinding devices

[ Upstream commit f2145f8dc566c4f3b5a8deb58dcd12bed4e20194 ]

Action of unbinding driver from a device is not cancellable and should not
fail, and driver core does not pay attention to the result of "remove"
method, therefore using down_interruptible() in hid_device_remove() does
not make sense.

Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/hid/hid-core.c