]> git.baikalelectronics.ru Git - kernel.git/commit
USB: serial: mos7840: drop paranoid serial checks
authorJohan Hovold <johan@kernel.org>
Thu, 7 Nov 2019 13:29:00 +0000 (14:29 +0100)
committerJohan Hovold <johan@kernel.org>
Tue, 12 Nov 2019 08:57:12 +0000 (09:57 +0100)
commitacfa183cdc17c8b512c144a6d9d172c798c8de87
tree207527b8bbc463904b89d158e11f5212ef5cada9
parent70ac744639b6f19f6de125c1325eddd13d38d71b
USB: serial: mos7840: drop paranoid serial checks

Drop the likewise paranoid serial structure sanity checks.

USB serial core sets the serial pointer in the port structures at
initialisation and it is never cleared, and similar for the serial
structure type.

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