Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Colin Ian King and committed by
David S. Miller
94c76351 26476f6a

-2
-2
drivers/net/wan/farsync.c
··· 2134 2134 fst_openport(struct fst_port_info *port) 2135 2135 { 2136 2136 int signals; 2137 - int txq_length; 2138 2137 2139 2138 /* Only init things if card is actually running. This allows open to 2140 2139 * succeed for downloads etc. ··· 2160 2161 else 2161 2162 netif_carrier_off(port_to_dev(port)); 2162 2163 2163 - txq_length = port->txqe - port->txqs; 2164 2164 port->txqe = 0; 2165 2165 port->txqs = 0; 2166 2166 }