From: Denis Cheng Date: Sun, 16 Sep 2007 23:39:25 +0000 (-0700) Subject: [IPV4] af_inet.c: use ARRAY_SIZE macro from kernel.h instead X-Git-Tag: v2.6.24-rc1~1454^2~471 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c40f6fff401f693f627d3d44ef7663b993943517;p=linux-2.6 [IPV4] af_inet.c: use ARRAY_SIZE macro from kernel.h instead Signed-off-by: Denis Cheng Signed-off-by: David S. Miller --- diff --git a/net/ipv4/af_inet.c b/net/ipv4/af_inet.c index 110a19edac..e594a2c896 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) {