USB: serial: Remove unused serial_priv variable
qt2_open() and qt2_close() both set a serial_priv variable but never used it. Remove the variable from the functions. Signed-off-by: Bill Pemberton <wfp5p@virginia.edu> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
996a776544
commit
c50f2af8e1
1 changed files with 0 additions and 4 deletions
|
@ -345,7 +345,6 @@ static void qt2_set_termios(struct tty_struct *tty,
|
||||||
static int qt2_open(struct tty_struct *tty, struct usb_serial_port *port)
|
static int qt2_open(struct tty_struct *tty, struct usb_serial_port *port)
|
||||||
{
|
{
|
||||||
struct usb_serial *serial;
|
struct usb_serial *serial;
|
||||||
struct qt2_serial_private *serial_priv;
|
|
||||||
struct qt2_port_private *port_priv;
|
struct qt2_port_private *port_priv;
|
||||||
u8 *data;
|
u8 *data;
|
||||||
u16 device_port;
|
u16 device_port;
|
||||||
|
@ -357,7 +356,6 @@ static int qt2_open(struct tty_struct *tty, struct usb_serial_port *port)
|
||||||
serial = port->serial;
|
serial = port->serial;
|
||||||
|
|
||||||
port_priv = usb_get_serial_port_data(port);
|
port_priv = usb_get_serial_port_data(port);
|
||||||
serial_priv = usb_get_serial_data(serial);
|
|
||||||
|
|
||||||
/* set the port to RS232 mode */
|
/* set the port to RS232 mode */
|
||||||
status = qt2_control_msg(serial->dev, QT2_GET_SET_QMCR,
|
status = qt2_control_msg(serial->dev, QT2_GET_SET_QMCR,
|
||||||
|
@ -417,13 +415,11 @@ static int qt2_open(struct tty_struct *tty, struct usb_serial_port *port)
|
||||||
static void qt2_close(struct usb_serial_port *port)
|
static void qt2_close(struct usb_serial_port *port)
|
||||||
{
|
{
|
||||||
struct usb_serial *serial;
|
struct usb_serial *serial;
|
||||||
struct qt2_serial_private *serial_priv;
|
|
||||||
struct qt2_port_private *port_priv;
|
struct qt2_port_private *port_priv;
|
||||||
unsigned long flags;
|
unsigned long flags;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
serial = port->serial;
|
serial = port->serial;
|
||||||
serial_priv = usb_get_serial_data(serial);
|
|
||||||
port_priv = usb_get_serial_port_data(port);
|
port_priv = usb_get_serial_port_data(port);
|
||||||
|
|
||||||
port_priv->is_open = false;
|
port_priv->is_open = false;
|
||||||
|
|
Loading…
Reference in a new issue