diff options
-rw-r--r-- | drivers/infiniband/hw/ipath/ipath_iba7220.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/infiniband/hw/ipath/ipath_iba7220.c b/drivers/infiniband/hw/ipath/ipath_iba7220.c index 8eee7830f04..fb70712ac85 100644 --- a/drivers/infiniband/hw/ipath/ipath_iba7220.c +++ b/drivers/infiniband/hw/ipath/ipath_iba7220.c | |||
@@ -2228,8 +2228,8 @@ static void ipath_autoneg_send(struct ipath_devdata *dd, int which) | |||
2228 | 0xffffffff, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, | 2228 | 0xffffffff, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, |
2229 | 0x40000001, 0x1388, 0x15e, /* rest 0's */ | 2229 | 0x40000001, 0x1388, 0x15e, /* rest 0's */ |
2230 | }; | 2230 | }; |
2231 | dcnt = sizeof(madpayload_start)/sizeof(madpayload_start[0]); | 2231 | dcnt = ARRAY_SIZE(madpayload_start); |
2232 | hcnt = sizeof(hdr)/sizeof(hdr[0]); | 2232 | hcnt = ARRAY_SIZE(hdr); |
2233 | if (!swapped) { | 2233 | if (!swapped) { |
2234 | /* for maintainability, do it at runtime */ | 2234 | /* for maintainability, do it at runtime */ |
2235 | for (i = 0; i < hcnt; i++) { | 2235 | for (i = 0; i < hcnt; i++) { |