]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
USB: ftdi_sio: remove unused tx_bytes counter
authorJohan Hovold <jhovold@gmail.com>
Thu, 25 Feb 2010 19:18:13 +0000 (20:18 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 2 Mar 2010 22:55:20 +0000 (14:55 -0800)
Remove counter that is never exported.

Signed-off-by: Johan Hovold <jhovold@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/serial/ftdi_sio.c

index 96686471472d07aec9503bbe44d55f2e2a14e6d3..9594e357a914afc8da1854f4420e33c51dd57332 100644 (file)
@@ -88,7 +88,6 @@ struct ftdi_private {
 
        unsigned int latency;           /* latency setting in use */
        spinlock_t tx_lock;     /* spinlock for transmit state */
-       unsigned long tx_bytes;
        unsigned long tx_outstanding_bytes;
        unsigned long tx_outstanding_urbs;
        unsigned short max_packet_size;
@@ -1729,10 +1728,6 @@ static int ftdi_open(struct tty_struct *tty, struct usb_serial_port *port)
 
        dbg("%s", __func__);
 
-       spin_lock_irqsave(&priv->tx_lock, flags);
-       priv->tx_bytes = 0;
-       spin_unlock_irqrestore(&priv->tx_lock, flags);
-
        write_latency_timer(port);
 
        /* No error checking for this (will get errors later anyway) */
@@ -1917,7 +1912,6 @@ static int ftdi_write(struct tty_struct *tty, struct usb_serial_port *port,
        } else {
                spin_lock_irqsave(&priv->tx_lock, flags);
                priv->tx_outstanding_bytes += count;
-               priv->tx_bytes += count;
                spin_unlock_irqrestore(&priv->tx_lock, flags);
        }