Remove disconnect and its redundant read-urb kill which is already taken
care of in close.

Signed-off-by: Johan Hovold <[email protected]>
---
 drivers/usb/serial/opticon.c | 8 --------
 1 file changed, 8 deletions(-)

diff --git a/drivers/usb/serial/opticon.c b/drivers/usb/serial/opticon.c
index 77700b0..2fb71d8 100644
--- a/drivers/usb/serial/opticon.c
+++ b/drivers/usb/serial/opticon.c
@@ -518,13 +518,6 @@ error:
        return retval;
 }
 
-static void opticon_disconnect(struct usb_serial *serial)
-{
-       struct opticon_private *priv = usb_get_serial_data(serial);
-
-       usb_kill_urb(priv->bulk_read_urb);
-}
-
 static void opticon_release(struct usb_serial *serial)
 {
        struct opticon_private *priv = usb_get_serial_data(serial);
@@ -570,7 +563,6 @@ static struct usb_serial_driver opticon_device = {
        .close =                opticon_close,
        .write =                opticon_write,
        .write_room =           opticon_write_room,
-       .disconnect =           opticon_disconnect,
        .release =              opticon_release,
        .throttle =             opticon_throttle,
        .unthrottle =           opticon_unthrottle,
-- 
1.7.12.4

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to