USB: serial: remove overly defensive port tests
authorJohan Hovold <jhovold@gmail.com>
Mon, 26 May 2014 17:23:34 +0000 (19:23 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 27 May 2014 22:04:08 +0000 (15:04 -0700)
commit3fff3b4343f45963c087976c772348f3051a40ee
tree59b907832b41469c9c090989b1c18f3c05e9007f
parentc14829fad88dbeda57253590695b85ba51270621
USB: serial: remove overly defensive port tests

The only way a port pointer may be NULL is if probe() failed, and in
that case neither disconnect(), resume(), or reset_resume() will be
called.

Signed-off-by: Johan Hovold <jhovold@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/serial/usb-serial.c