[PATCH] drivers/char: Use ARRAY_SIZE macro
[deliverable/linux.git] / drivers / char / mxser.c
index 26448f176803e1b551fd21e8689d76911a400b48..51bb2a3cf8b34f6e92a84f8b09aa16365b7cc03c 100644 (file)
@@ -813,7 +813,7 @@ static int mxser_init(void)
 
        /* start finding PCI board here */
 #ifdef CONFIG_PCI
-       n = (sizeof(mxser_pcibrds) / sizeof(mxser_pcibrds[0])) - 1;
+       n = ARRAY_SIZE(mxser_pcibrds) - 1;
        index = 0;
        b = 0;
        while (b < n) {
This page took 0.026554 seconds and 5 git commands to generate.