Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 94c76351 authored by Colin Ian King's avatar Colin Ian King Committed by David S. Miller
Browse files

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: default avatarColin Ian King <colin.king@canonical.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 26476f6a
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -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;
	}