diff options
author | Colin Ian King <colin.king@canonical.com> | 2018-07-07 12:27:30 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-07-07 20:49:08 +0900 |
commit | 94c763513452b466d1e5c86b9d883ba13c9a031a (patch) | |
tree | 9be5fbbae4f0027ca50f66e716c8ee507b7d1b3c /drivers/net/wan/farsync.c | |
parent | 26476f6a1236304f1f230961469ff51c67111c8e (diff) | |
download | linux-94c763513452b466d1e5c86b9d883ba13c9a031a.tar.bz2 |
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/farsync.c')
-rw-r--r-- | drivers/net/wan/farsync.c | 2 |
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; } |