USB: idmouse: drop redundant open-count check from release
authorJohan Hovold <johan@kernel.org>
Tue, 5 Nov 2019 10:36:37 +0000 (11:36 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 7 Nov 2019 10:16:49 +0000 (11:16 +0100)
commit6710f773b51f21ad7d10198ca6424bea7faaf9d4
tree773d50219b3520e06fc45d7e35f07d143c491283
parent79c36a704a87533ba1551170354f3fb507ff5b70
USB: idmouse: drop redundant open-count check from release

The open count will always be exactly one when release is called, so
drop the redundant sanity check.

Signed-off-by: Johan Hovold <johan@kernel.org>
Link: https://lore.kernel.org/r/20191105103638.4929-3-johan@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/misc/idmouse.c