diff options
author | Johan Hovold <jhovold@gmail.com> | 2011-11-06 13:06:27 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-11-15 13:33:14 -0500 |
commit | 016af7ec49836342c3b35166792c8d73a360571c (patch) | |
tree | f324bb6fc76fa3cb5315d7c307fdc039bf21e672 /drivers/usb/serial | |
parent | 6d0f41abae30112b3cdca62c09370cc8801ee1f5 (diff) |
USB: mos7720: remove unused code
Remove variable port0 from open as it is not used.
Signed-off-by: Johan Hovold <jhovold@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/serial')
-rw-r--r-- | drivers/usb/serial/mos7720.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/usb/serial/mos7720.c b/drivers/usb/serial/mos7720.c index b4f219ad2ea2..51b56b0c4228 100644 --- a/drivers/usb/serial/mos7720.c +++ b/drivers/usb/serial/mos7720.c | |||
@@ -1009,7 +1009,6 @@ static int mos77xx_calc_num_ports(struct usb_serial *serial) | |||
1009 | static int mos7720_open(struct tty_struct *tty, struct usb_serial_port *port) | 1009 | static int mos7720_open(struct tty_struct *tty, struct usb_serial_port *port) |
1010 | { | 1010 | { |
1011 | struct usb_serial *serial; | 1011 | struct usb_serial *serial; |
1012 | struct usb_serial_port *port0; | ||
1013 | struct urb *urb; | 1012 | struct urb *urb; |
1014 | struct moschip_port *mos7720_port; | 1013 | struct moschip_port *mos7720_port; |
1015 | int response; | 1014 | int response; |
@@ -1024,8 +1023,6 @@ static int mos7720_open(struct tty_struct *tty, struct usb_serial_port *port) | |||
1024 | if (mos7720_port == NULL) | 1023 | if (mos7720_port == NULL) |
1025 | return -ENODEV; | 1024 | return -ENODEV; |
1026 | 1025 | ||
1027 | port0 = serial->port[0]; | ||
1028 | |||
1029 | usb_clear_halt(serial->dev, port->write_urb->pipe); | 1026 | usb_clear_halt(serial->dev, port->write_urb->pipe); |
1030 | usb_clear_halt(serial->dev, port->read_urb->pipe); | 1027 | usb_clear_halt(serial->dev, port->read_urb->pipe); |
1031 | 1028 | ||