Commit c40f6fff authored by Denis Cheng's avatar Denis Cheng Committed by David S. Miller

[IPV4] af_inet.c: use ARRAY_SIZE macro from kernel.h instead

Signed-off-by: default avatarDenis Cheng <crquan@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 26ff5ddc
......@@ -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)
{
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment