projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
26ff5dd
)
[IPV4] af_inet.c: use ARRAY_SIZE macro from kernel.h instead
author
Denis Cheng
<crquan@gmail.com>
Sun, 16 Sep 2007 23:39:25 +0000
(16:39 -0700)
committer
David S. Miller
<davem@sunset.davemloft.net>
Wed, 10 Oct 2007 23:51:26 +0000
(16:51 -0700)
Signed-off-by: Denis Cheng <crquan@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/af_inet.c
patch
|
blob
|
blame
|
history
diff --git
a/net/ipv4/af_inet.c
b/net/ipv4/af_inet.c
index 110a19edacc817779b112bbdef45e71e6a9e25dd..e594a2c8966190b23fe1520692f0a0c04f6e2465 100644
(file)
--- a/
net/ipv4/af_inet.c
+++ b/
net/ipv4/af_inet.c
@@
-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)
{