aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/isdn/capi/capidrv.c
diff options
context:
space:
mode:
authorAhmed S. Darwish <darwish.07@gmail.com>2007-02-12 03:53:19 -0500
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-02-12 12:48:34 -0500
commitfd863db937c0d30679d4bd5329653adb46b66627 (patch)
treedd4bd40c998ee7718eca0d6139db32fb14451c87 /drivers/isdn/capi/capidrv.c
parentfc238b3791447b93c69cd50a99dfcaad6162afba (diff)
[PATCH] isdn/capi: use ARRAY_SIZE when appropriate
Signed-off-by: Ahmed S. Darwish <darwish.07@gmail.com> Acked-by: Karsten Keil <kkeil@suse.de> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/isdn/capi/capidrv.c')
-rw-r--r--drivers/isdn/capi/capidrv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/isdn/capi/capidrv.c b/drivers/isdn/capi/capidrv.c
index c4d438c17dab..8cec9c3898ec 100644
--- a/drivers/isdn/capi/capidrv.c
+++ b/drivers/isdn/capi/capidrv.c
@@ -2218,7 +2218,7 @@ static struct procfsentries {
2218 2218
2219static void __init proc_init(void) 2219static void __init proc_init(void)
2220{ 2220{
2221 int nelem = sizeof(procfsentries)/sizeof(procfsentries[0]); 2221 int nelem = ARRAY_SIZE(procfsentries);
2222 int i; 2222 int i;
2223 2223
2224 for (i=0; i < nelem; i++) { 2224 for (i=0; i < nelem; i++) {
@@ -2230,7 +2230,7 @@ static void __init proc_init(void)
2230 2230
2231static void __exit proc_exit(void) 2231static void __exit proc_exit(void)
2232{ 2232{
2233 int nelem = sizeof(procfsentries)/sizeof(procfsentries[0]); 2233 int nelem = ARRAY_SIZE(procfsentries);
2234 int i; 2234 int i;
2235 2235
2236 for (i=nelem-1; i >= 0; i--) { 2236 for (i=nelem-1; i >= 0; i--) {