diff options
Diffstat (limited to 'net/ipv4/af_inet.c')
-rw-r--r-- | net/ipv4/af_inet.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/af_inet.c b/net/ipv4/af_inet.c index 110a19edacc8..e594a2c89661 100644 --- a/net/ipv4/af_inet.c +++ b/net/ipv4/af_inet.c | |||
@@ -942,7 +942,7 @@ static struct inet_protosw inetsw_array[] = | |||
942 | } | 942 | } |
943 | }; | 943 | }; |
944 | 944 | ||
945 | #define INETSW_ARRAY_LEN (sizeof(inetsw_array) / sizeof(struct inet_protosw)) | 945 | #define INETSW_ARRAY_LEN ARRAY_SIZE(inetsw_array) |
946 | 946 | ||
947 | void inet_register_protosw(struct inet_protosw *p) | 947 | void inet_register_protosw(struct inet_protosw *p) |
948 | { | 948 | { |