提交 016af7ec 编写于 作者: J Johan Hovold 提交者: Greg Kroah-Hartman

USB: mos7720: remove unused code

Remove variable port0 from open as it is not used.
Signed-off-by: NJohan Hovold <jhovold@gmail.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
上级 6d0f41ab
...@@ -1009,7 +1009,6 @@ static int mos77xx_calc_num_ports(struct usb_serial *serial) ...@@ -1009,7 +1009,6 @@ static int mos77xx_calc_num_ports(struct usb_serial *serial)
static int mos7720_open(struct tty_struct *tty, struct usb_serial_port *port) static int mos7720_open(struct tty_struct *tty, struct usb_serial_port *port)
{ {
struct usb_serial *serial; struct usb_serial *serial;
struct usb_serial_port *port0;
struct urb *urb; struct urb *urb;
struct moschip_port *mos7720_port; struct moschip_port *mos7720_port;
int response; int response;
...@@ -1024,8 +1023,6 @@ static int mos7720_open(struct tty_struct *tty, struct usb_serial_port *port) ...@@ -1024,8 +1023,6 @@ static int mos7720_open(struct tty_struct *tty, struct usb_serial_port *port)
if (mos7720_port == NULL) if (mos7720_port == NULL)
return -ENODEV; return -ENODEV;
port0 = serial->port[0];
usb_clear_halt(serial->dev, port->write_urb->pipe); usb_clear_halt(serial->dev, port->write_urb->pipe);
usb_clear_halt(serial->dev, port->read_urb->pipe); usb_clear_halt(serial->dev, port->read_urb->pipe);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册