USB: serial: mos7840: drop paranoid port checks
authorJohan Hovold <johan@kernel.org>
Thu, 7 Nov 2019 13:28:59 +0000 (14:28 +0100)
committerJohan Hovold <johan@kernel.org>
Tue, 12 Nov 2019 08:57:05 +0000 (09:57 +0100)
commitce039bd4b21fdd158e6dbe8baeb577e6347ea7aa
tree91a2e619206f1b33a129a3c134a2708cb58cebb9
parent3ec9fb6f385461923b77de6072403e97d2efe01b
USB: serial: mos7840: drop paranoid port checks

Drop the paranoid port structure sanity checks which are confusing at
best.

The driver data port pointer is set at port probe and never cleared,
while USB serial core sets the tty driver data at install and won't call
any driver functions with a NULL port pointer.

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