summaryrefslogtreecommitdiffstats
path: root/net/ipv4/af_inet.c
diff options
context:
space:
mode:
authorDenis Cheng <crquan@gmail.com>2007-09-17 01:39:25 +0200
committerDavid S. Miller <davem@sunset.davemloft.net>2007-10-11 01:51:26 +0200
commitc40f6fff401f693f627d3d44ef7663b993943517 (patch)
tree7f562348e35f53b654eb0d805137df2e434faa3a /net/ipv4/af_inet.c
parent[NETLINK]: the temp variable name max is ambiguous (diff)
downloadlinux-c40f6fff401f693f627d3d44ef7663b993943517.tar.xz
linux-c40f6fff401f693f627d3d44ef7663b993943517.zip
[IPV4] af_inet.c: use ARRAY_SIZE macro from kernel.h instead
Signed-off-by: Denis Cheng <crquan@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/af_inet.c')
-rw-r--r--net/ipv4/af_inet.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/af_inet.c b/net/ipv4/af_inet.c
index 110a19edacc8..e594a2c89661 100644
--- a/net/ipv4/af_inet.c
+++ b/net/ipv4/af_inet.c
@@ -942,7 +942,7 @@ static struct inet_protosw inetsw_array[] =
}
};
-#define INETSW_ARRAY_LEN (sizeof(inetsw_array) / sizeof(struct inet_protosw))
+#define INETSW_ARRAY_LEN ARRAY_SIZE(inetsw_array)
void inet_register_protosw(struct inet_protosw *p)
{