diff --git a/net/core/net-sysfs.c b/net/core/net-sysfs.c
index da7dbc237a5f4c2f98aee3bf5f95a78f6768707e..4ae17c3166fc99cddf4973a51493f1e1d9d3a8f9 100644
--- a/net/core/net-sysfs.c
+++ b/net/core/net-sysfs.c
@@ -29,7 +29,6 @@
 
 #ifdef CONFIG_SYSFS
 static const char fmt_hex[] = "%#x\n";
-static const char fmt_long_hex[] = "%#lx\n";
 static const char fmt_dec[] = "%d\n";
 static const char fmt_ulong[] = "%lu\n";
 static const char fmt_u64[] = "%llu\n";