OSDN Git Service

USB: serial: mos7840: drop port open flag
authorJohan Hovold <johan@kernel.org>
Thu, 7 Nov 2019 13:29:04 +0000 (14:29 +0100)
committerJohan Hovold <johan@kernel.org>
Tue, 12 Nov 2019 08:57:32 +0000 (09:57 +0100)
commit067814c97494ea99e9cf8b77523e17369d38ec25
treecd3e36a7a2584bab22ce3e7842f02164a708b9fd
parentf8e8dcaf14d9c2bfb34018cb02e7a40f3d56c8eb
USB: serial: mos7840: drop port open flag

Drop the redundant port open flag and corresponding checks. USB serial
core will not call any of these driver callbacks for a closed port, and the
write URBs are stopped at close().

Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Johan Hovold <johan@kernel.org>
drivers/usb/serial/mos7840.c