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

3c515: remove unused 'mtu' variable

This has never been used since the start of the git history. When building
with W=1, the unused variable produces a gcc warning:

drivers/net/ethernet/3com/3c515.c:35:18: error: 'mtu' defined but not used [-Werror=unused-const-variable=]

Just remove it.

Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Link: https://lore.kernel.org/r/20240403080702.3509288-6-arnd@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

Arnd Bergmann and committed by
Jakub Kicinski
17b35355 386f4a73

-3
-3
drivers/net/ethernet/3com/3c515.c
··· 31 31 Setting to > 1512 effectively disables this feature. */ 32 32 static int rx_copybreak = 200; 33 33 34 - /* Allow setting MTU to a larger size, bypassing the normal ethernet setup. */ 35 - static const int mtu = 1500; 36 - 37 34 /* Maximum events (Rx packets, etc.) to handle at each interrupt. */ 38 35 static int max_interrupt_work = 20; 39 36