mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-19 10:44:14 +08:00
USB: serial: quatech2: remove set but not used variable 'port_priv'
Fixes gcc '-Wunused-but-set-variable' warning:
drivers/usb/serial/quatech2.c: In function 'qt2_process_read_urb':
drivers/usb/serial/quatech2.c:503:27: warning:
variable 'port_priv' set but not used [-Wunused-but-set-variable]
It not used any more after commit 2be818a116
('Revert "USB: quatech2:
only write to the tty if the port is open."')
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Johan Hovold <johan@kernel.org>
This commit is contained in:
parent
ccda4af0f4
commit
548f32f594
@ -500,7 +500,6 @@ static void qt2_process_read_urb(struct urb *urb)
|
|||||||
struct usb_serial *serial;
|
struct usb_serial *serial;
|
||||||
struct qt2_serial_private *serial_priv;
|
struct qt2_serial_private *serial_priv;
|
||||||
struct usb_serial_port *port;
|
struct usb_serial_port *port;
|
||||||
struct qt2_port_private *port_priv;
|
|
||||||
bool escapeflag;
|
bool escapeflag;
|
||||||
unsigned char *ch;
|
unsigned char *ch;
|
||||||
int i;
|
int i;
|
||||||
@ -514,7 +513,6 @@ static void qt2_process_read_urb(struct urb *urb)
|
|||||||
serial = urb->context;
|
serial = urb->context;
|
||||||
serial_priv = usb_get_serial_data(serial);
|
serial_priv = usb_get_serial_data(serial);
|
||||||
port = serial->port[serial_priv->current_port];
|
port = serial->port[serial_priv->current_port];
|
||||||
port_priv = usb_get_serial_port_data(port);
|
|
||||||
|
|
||||||
for (i = 0; i < urb->actual_length; i++) {
|
for (i = 0; i < urb->actual_length; i++) {
|
||||||
ch = (unsigned char *)urb->transfer_buffer + i;
|
ch = (unsigned char *)urb->transfer_buffer + i;
|
||||||
@ -566,7 +564,6 @@ static void qt2_process_read_urb(struct urb *urb)
|
|||||||
|
|
||||||
serial_priv->current_port = newport;
|
serial_priv->current_port = newport;
|
||||||
port = serial->port[serial_priv->current_port];
|
port = serial->port[serial_priv->current_port];
|
||||||
port_priv = usb_get_serial_port_data(port);
|
|
||||||
i += 3;
|
i += 3;
|
||||||
escapeflag = true;
|
escapeflag = true;
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user