Commit f99aa3f9 authored by Carlos R. Mafra's avatar Carlos R. Mafra Committed by Greg Kroah-Hartman

USB: option: Remove unused variable

After commit f092c240 ("USB: option:
remove unnecessary and erroneous code") the variable 'serial' becomes
unused, as gcc-4.3.2 points out:

drivers/usb/serial/option.c: In function 'option_instat_callback':
drivers/usb/serial/option.c:834: warning: unused variable 'serial'
drivers/usb/serial/option.c: In function 'option_open':
drivers/usb/serial/option.c:930: warning: unused variable 'serial'

So I removed it.
Signed-off-by: default avatarCarlos R. Mafra <crmafra@aei.mpg.de>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 4733fd32
...@@ -831,7 +831,6 @@ static void option_instat_callback(struct urb *urb) ...@@ -831,7 +831,6 @@ static void option_instat_callback(struct urb *urb)
int status = urb->status; int status = urb->status;
struct usb_serial_port *port = urb->context; struct usb_serial_port *port = urb->context;
struct option_port_private *portdata = usb_get_serial_port_data(port); struct option_port_private *portdata = usb_get_serial_port_data(port);
struct usb_serial *serial = port->serial;
dbg("%s", __func__); dbg("%s", __func__);
dbg("%s: urb %p port %p has data %p", __func__, urb, port, portdata); dbg("%s: urb %p port %p has data %p", __func__, urb, port, portdata);
...@@ -927,7 +926,6 @@ static int option_open(struct tty_struct *tty, ...@@ -927,7 +926,6 @@ static int option_open(struct tty_struct *tty,
struct usb_serial_port *port, struct file *filp) struct usb_serial_port *port, struct file *filp)
{ {
struct option_port_private *portdata; struct option_port_private *portdata;
struct usb_serial *serial = port->serial;
int i, err; int i, err;
struct urb *urb; struct urb *urb;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment