aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/usb/serial/cypress_m8.c1
-rw-r--r--drivers/usb/serial/sierra.c2
2 files changed, 1 insertions, 2 deletions
diff --git a/drivers/usb/serial/cypress_m8.c b/drivers/usb/serial/cypress_m8.c
index eee87268ae5b..c349f790f856 100644
--- a/drivers/usb/serial/cypress_m8.c
+++ b/drivers/usb/serial/cypress_m8.c
@@ -691,7 +691,6 @@ static void cypress_dtr_rts(struct usb_serial_port *port, int on)
691{ 691{
692 struct cypress_private *priv = usb_get_serial_port_data(port); 692 struct cypress_private *priv = usb_get_serial_port_data(port);
693 /* drop dtr and rts */ 693 /* drop dtr and rts */
694 priv = usb_get_serial_port_data(port);
695 spin_lock_irq(&priv->lock); 694 spin_lock_irq(&priv->lock);
696 if (on == 0) 695 if (on == 0)
697 priv->line_control = 0; 696 priv->line_control = 0;
diff --git a/drivers/usb/serial/sierra.c b/drivers/usb/serial/sierra.c
index ea27f7d5acbe..bb0d56c32175 100644
--- a/drivers/usb/serial/sierra.c
+++ b/drivers/usb/serial/sierra.c
@@ -477,7 +477,7 @@ static void sierra_outdat_callback(struct urb *urb)
477static int sierra_write(struct tty_struct *tty, struct usb_serial_port *port, 477static int sierra_write(struct tty_struct *tty, struct usb_serial_port *port,
478 const unsigned char *buf, int count) 478 const unsigned char *buf, int count)
479{ 479{
480 struct sierra_port_private *portdata = usb_get_serial_port_data(port); 480 struct sierra_port_private *portdata;
481 struct sierra_intf_private *intfdata; 481 struct sierra_intf_private *intfdata;
482 struct usb_serial *serial = port->serial; 482 struct usb_serial *serial = port->serial;
483 unsigned long flags; 483 unsigned long flags;