]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit380c17fcde41f7f5416824f3f1142cc1415a2097
tree59b907832b41469c9c090989b1c18f3c05e9007f
parent5a635adfed22b1c9e4b121b4ac16076883d71297
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