farsync: remove redundant variable txq_length
authorColin Ian King <colin.king@canonical.com>
Sat, 7 Jul 2018 11:27:30 +0000 (12:27 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sat, 7 Jul 2018 11:49:08 +0000 (20:49 +0900)
Variable txq_length is being assigned but is never used hence it is
redundant and can be removed.

Cleans up clang warning:
warning: variable 'txq_length' set but not used [-Wunused-but-set-variable]

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/wan/farsync.c

index bd46b25..2a3f0f1 100644 (file)
@@ -2134,7 +2134,6 @@ static void
 fst_openport(struct fst_port_info *port)
 {
        int signals;
-       int txq_length;
 
        /* Only init things if card is actually running. This allows open to
         * succeed for downloads etc.
@@ -2161,7 +2160,6 @@ fst_openport(struct fst_port_info *port)
                else
                        netif_carrier_off(port_to_dev(port));
 
-               txq_length = port->txqe - port->txqs;
                port->txqe = 0;
                port->txqs = 0;
        }