aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/isdn/capi/capi.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/isdn/capi/capi.c')
-rw-r--r--drivers/isdn/capi/capi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/isdn/capi/capi.c b/drivers/isdn/capi/capi.c
index d22c0224fde6..38045910ca94 100644
--- a/drivers/isdn/capi/capi.c
+++ b/drivers/isdn/capi/capi.c
@@ -1456,7 +1456,7 @@ static struct procfsentries {
1456 1456
1457static void __init proc_init(void) 1457static void __init proc_init(void)
1458{ 1458{
1459 int nelem = sizeof(procfsentries)/sizeof(procfsentries[0]); 1459 int nelem = ARRAY_SIZE(procfsentries);
1460 int i; 1460 int i;
1461 1461
1462 for (i=0; i < nelem; i++) { 1462 for (i=0; i < nelem; i++) {
@@ -1468,7 +1468,7 @@ static void __init proc_init(void)
1468 1468
1469static void __exit proc_exit(void) 1469static void __exit proc_exit(void)
1470{ 1470{
1471 int nelem = sizeof(procfsentries)/sizeof(procfsentries[0]); 1471 int nelem = ARRAY_SIZE(procfsentries);
1472 int i; 1472 int i;
1473 1473
1474 for (i=nelem-1; i >= 0; i--) { 1474 for (i=nelem-1; i >= 0; i--) {