Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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)
{