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

Configure Feed

Select the types of activity you want to include in your feed.

net: ena: removed unused tx_bytes variable

clang 16.0.0 with W=1 reports:

drivers/net/ethernet/amazon/ena/ena_netdev.c:1901:6: error: variable 'tx_bytes' set but not used [-Werror,-Wunused-but-set-variable]
u32 tx_bytes = 0;

The variable is not used so remove it.

Signed-off-by: Simon Horman <horms@kernel.org>
Acked-by: Shay Agroskin <shayagr@amazon.com>
Link: https://lore.kernel.org/r/20230328151958.410687-1-horms@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

Simon Horman and committed by
Jakub Kicinski
c5370374 765f3604

-2
-2
drivers/net/ethernet/amazon/ena/ena_netdev.c
··· 1898 1898 { 1899 1899 u32 total_done = 0; 1900 1900 u16 next_to_clean; 1901 - u32 tx_bytes = 0; 1902 1901 int tx_pkts = 0; 1903 1902 u16 req_id; 1904 1903 int rc; ··· 1935 1936 "tx_poll: q %d skb %p completed\n", xdp_ring->qid, 1936 1937 xdpf); 1937 1938 1938 - tx_bytes += xdpf->len; 1939 1939 tx_pkts++; 1940 1940 total_done += tx_info->tx_descs; 1941 1941