diff options
author | Carlos R. Mafra <crmafra@aei.mpg.de> | 2009-07-13 15:45:03 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-07-28 17:31:09 -0400 |
commit | f99aa3f9b67ca8c29dc29ef3fc453f0343206c46 (patch) | |
tree | 9ab07b647a8e64fc333d572e838bf021eed1e591 /drivers/usb | |
parent | 4733fd328f14280900435d9dbae1487d110a4d56 (diff) |
USB: option: Remove unused variable
After commit f092c240494f2d807401d93f95f683909b90af96 ("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: Carlos R. Mafra <crmafra@aei.mpg.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb')
-rw-r--r-- | drivers/usb/serial/option.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/usb/serial/option.c b/drivers/usb/serial/option.c index 98262dd552bb..77b9563ec43e 100644 --- a/drivers/usb/serial/option.c +++ b/drivers/usb/serial/option.c | |||
@@ -831,7 +831,6 @@ static void option_instat_callback(struct urb *urb) | |||
831 | int status = urb->status; | 831 | int status = urb->status; |
832 | struct usb_serial_port *port = urb->context; | 832 | struct usb_serial_port *port = urb->context; |
833 | struct option_port_private *portdata = usb_get_serial_port_data(port); | 833 | struct option_port_private *portdata = usb_get_serial_port_data(port); |
834 | struct usb_serial *serial = port->serial; | ||
835 | 834 | ||
836 | dbg("%s", __func__); | 835 | dbg("%s", __func__); |
837 | dbg("%s: urb %p port %p has data %p", __func__, urb, port, portdata); | 836 | 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 | struct usb_serial_port *port, struct file *filp) | 926 | struct usb_serial_port *port, struct file *filp) |
928 | { | 927 | { |
929 | struct option_port_private *portdata; | 928 | struct option_port_private *portdata; |
930 | struct usb_serial *serial = port->serial; | ||
931 | int i, err; | 929 | int i, err; |
932 | struct urb *urb; | 930 | struct urb *urb; |
933 | 931 | ||