Skip to content

Commit

Permalink
farsync: remove redundant variable txq_length
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Colin Ian King authored and David S. Miller committed Jul 7, 2018
1 parent 26476f6 commit 94c7635
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/net/wan/farsync.c
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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;
}
Expand Down

0 comments on commit 94c7635

Please sign in to comment.