提交 c40f6fff 编写于 作者: D Denis Cheng 提交者: David S. Miller

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

Signed-off-by: NDenis Cheng <crquan@gmail.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 26ff5ddc
...@@ -942,7 +942,7 @@ static struct inet_protosw inetsw_array[] = ...@@ -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) void inet_register_protosw(struct inet_protosw *p)
{ {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册