From: Sven Wegener Date: Sun, 10 Aug 2008 09:18:01 +0000 (+0000) Subject: ipvs: Use ARRAY_SIZE() X-Git-Tag: v2.6.27-rc4~103^2~43^2~7 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=afdd614071aef652f5a3e2a06965de049dd8339b;p=linux-2.6-omap-h63xx.git ipvs: Use ARRAY_SIZE() Signed-off-by: Sven Wegener Acked-by: Simon Horman --- diff --git a/include/net/ip_vs.h b/include/net/ip_vs.h index cbb59ebed4a..e980416bff8 100644 --- a/include/net/ip_vs.h +++ b/include/net/ip_vs.h @@ -440,7 +440,7 @@ struct ip_vs_app */ extern const char *ip_vs_proto_name(unsigned proto); extern void ip_vs_init_hash_table(struct list_head *table, int rows); -#define IP_VS_INIT_HASH_TABLE(t) ip_vs_init_hash_table(t, sizeof(t)/sizeof(t[0])) +#define IP_VS_INIT_HASH_TABLE(t) ip_vs_init_hash_table((t), ARRAY_SIZE((t))) #define IP_VS_APP_TYPE_FTP 1