From: Shan Wei Date: Wed, 1 Dec 2010 18:04:43 +0000 (+0000) Subject: net: snmp: fix the wrong ICMP_MIB_MAX value X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a9527a3b621e507c85b639c183c3aa22afd4eb61;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git net: snmp: fix the wrong ICMP_MIB_MAX value __ICMP_MIB_MAX is equal to the total number of icmp mib, So no need to add 1. This wastes 4/8 bytes memory. Change it to be same as ICMP6_MIB_MAX, TCP_MIB_MAX, UDP_MIB_MAX. Signed-off-by: Shan Wei Signed-off-by: David S. Miller --- diff --git a/include/net/snmp.h b/include/net/snmp.h index a0e61806d480..aebb55383c43 100644 --- a/include/net/snmp.h +++ b/include/net/snmp.h @@ -61,8 +61,7 @@ struct ipstats_mib { /* ICMP */ #define ICMP_MIB_DUMMY __ICMP_MIB_MAX -#define ICMP_MIB_MAX (__ICMP_MIB_MAX + 1) - +#define ICMP_MIB_MAX __ICMP_MIB_MAX struct icmp_mib { unsigned long mibs[ICMP_MIB_MAX]; };