Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2a2c511c authored by Johan Hovold's avatar Johan Hovold Committed by Greg Kroah-Hartman
Browse files

USB: opticon: remove disconnect



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

Signed-off-by: default avatarJohan Hovold <jhovold@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 70f9bf65
Loading
Loading
Loading
Loading
+0 −8
Original line number Original line Diff line number Diff line
@@ -518,13 +518,6 @@ static int opticon_startup(struct usb_serial *serial)
	return retval;
	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)
static void opticon_release(struct usb_serial *serial)
{
{
	struct opticon_private *priv = usb_get_serial_data(serial);
	struct opticon_private *priv = usb_get_serial_data(serial);
@@ -570,7 +563,6 @@ static struct usb_serial_driver opticon_device = {
	.close =		opticon_close,
	.close =		opticon_close,
	.write =		opticon_write,
	.write =		opticon_write,
	.write_room = 		opticon_write_room,
	.write_room = 		opticon_write_room,
	.disconnect =		opticon_disconnect,
	.release =		opticon_release,
	.release =		opticon_release,
	.throttle = 		opticon_throttle,
	.throttle = 		opticon_throttle,
	.unthrottle =		opticon_unthrottle,
	.unthrottle =		opticon_unthrottle,