USB: serial: remove bogus disconnect test in cleanup
authorJohan Hovold <jhovold@gmail.com>
Thu, 21 Mar 2013 11:36:38 +0000 (12:36 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 25 Mar 2013 20:44:18 +0000 (13:44 -0700)
commit19c61853831f4f957885665ce36a573cbabf9ba1
tree72e695df1f2b6030a2f3374baeb0344cb932e256
parente6d144bc27da921b81d46eb7cac461be59ae301b
USB: serial: remove bogus disconnect test in cleanup

Remove bogus (and unnecessary) test for serial->dev being NULL in
cleanup.

The device is never cleared, and cleanup is never called after a
completed disconnect anyway.

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