]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit475c62e354490682a6f78abe8523afaa662d8aa4
tree72e695df1f2b6030a2f3374baeb0344cb932e256
parent9fa534fe357a4c148a2eb6b93f3961a09c868818
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