Merge branch 'core/topology' of git://git.kernel.org/pub/scm/linux/kernel/git/tip...
[pandora-kernel.git] / drivers / infiniband / hw / ipath / ipath_iba7220.c
index 8eee783..fb70712 100644 (file)
@@ -2228,8 +2228,8 @@ static void ipath_autoneg_send(struct ipath_devdata *dd, int which)
                0xffffffff, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
                0x40000001, 0x1388, 0x15e, /* rest 0's */
                };
-       dcnt = sizeof(madpayload_start)/sizeof(madpayload_start[0]);
-       hcnt = sizeof(hdr)/sizeof(hdr[0]);
+       dcnt = ARRAY_SIZE(madpayload_start);
+       hcnt = ARRAY_SIZE(hdr);
        if (!swapped) {
                /* for maintainability, do it at runtime */
                for (i = 0; i < hcnt; i++) {