Skip to contentSkip to conversation

ipv4: remove unused macro.

PATCH In review Rami Rosen 2 participants 2 messages Apr 27, 2013 – Apr 29, 2013

Subsystems (3)
lore
Share & tools
lore

Rami Rosen

author
#0 lore raw

PATCH 1/1 ipv4: remove unused macro.

This patch removes the IP_ADD_STATS macro from include/net/ip.h as it is unused.

---
 include/net/ip.h | 1 -
 1 file changed, 1 deletion(-)
include/net/ip.h +0 -1
index a68f838..a17ca36 100644
@@ -174,7 +174,6 @@ struct ipv4_config {
 extern struct ipv4_config ipv4_config;
 #define IP_INC_STATS(net, field)	SNMP_INC_STATS64((net)->mib.ip_statistics, field)
 #define IP_INC_STATS_BH(net, field)	SNMP_INC_STATS64_BH((net)->mib.ip_statistics, field)
-#define IP_ADD_STATS(net, field, val)	SNMP_ADD_STATS64((net)->mib.ip_statistics, field, val)
 #define IP_ADD_STATS_BH(net, field, val) SNMP_ADD_STATS64_BH((net)->mib.ip_statistics, field, val)
 #define IP_UPD_PO_STATS(net, field, val) SNMP_UPD_PO_STATS64((net)->mib.ip_statistics, field, val)
 #define IP_UPD_PO_STATS_BH(net, field, val) SNMP_UPD_PO_STATS64_BH((net)->mib.ip_statistics, field, val)
Signature · 1 line
1.8.1.4
maintainer
#1 lore raw

From: Rami Rosen <[email protected]>
Date: Sat, 27 Apr 2013 16:39:10 +0300

Quoted 4 lines

This patch removes the IP_ADD_STATS macro from include/net/ip.h as it is unused.

I think this interface does no harm sitting in this header file, so let's leave it there for now.

Thank you.