summaryrefslogtreecommitdiffstats
path: root/drivers/net/wan
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2018-07-07 12:27:30 +0100
committerDavid S. Miller <davem@davemloft.net>2018-07-07 20:49:08 +0900
commit94c763513452b466d1e5c86b9d883ba13c9a031a (patch)
tree9be5fbbae4f0027ca50f66e716c8ee507b7d1b3c /drivers/net/wan
parent26476f6a1236304f1f230961469ff51c67111c8e (diff)
downloadlinux-94c763513452b466d1e5c86b9d883ba13c9a031a.tar.gz
linux-94c763513452b466d1e5c86b9d883ba13c9a031a.tar.bz2
linux-94c763513452b466d1e5c86b9d883ba13c9a031a.zip
farsync: remove redundant variable txq_length
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>
Diffstat (limited to 'drivers/net/wan')
-rw-r--r--drivers/net/wan/farsync.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/net/wan/farsync.c b/drivers/net/wan/farsync.c
index bd46b2552980..2a3f0f1a2b0a 100644
--- a/drivers/net/wan/farsync.c
+++ b/drivers/net/wan/farsync.c
@@ -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;
}