OSDN Git Service

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)
commit6d3471eded5e64c0310ceeff4adf9ca6d324ddd7
tree207527b8bbc463904b89d158e11f5212ef5cada9
parentce039bd4b21fdd158e6dbe8baeb577e6347ea7aa
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