Skip to content
Snippets Groups Projects
Commit c40f6fff authored by Denis Cheng's avatar Denis Cheng Committed by David S. Miller
Browse files

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

parent 26ff5ddc
No related branches found
No related tags found
No related merge requests found
...@@ -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)
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment