]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
3c515: remove unused 'mtu' variable
authorArnd Bergmann <arnd@arndb.de>
Wed, 3 Apr 2024 08:06:23 +0000 (10:06 +0200)
committerJakub Kicinski <kuba@kernel.org>
Sat, 6 Apr 2024 05:10:59 +0000 (22:10 -0700)
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>
drivers/net/ethernet/3com/3c515.c

index ba3e7aa1a28fb577185be24a6592d37f298e9eef..4725a8cfd695eba3caccc5dc03846057890cf595 100644 (file)
@@ -31,9 +31,6 @@
    Setting to > 1512 effectively disables this feature. */
 static int rx_copybreak = 200;
 
-/* Allow setting MTU to a larger size, bypassing the normal ethernet setup. */
-static const int mtu = 1500;
-
 /* Maximum events (Rx packets, etc.) to handle at each interrupt. */
 static int max_interrupt_work = 20;