projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9670e55
)
IB/ipath: Simplify code using ARRAY_SIZE() macro
author
Robert P. J. Day
<
[email protected]
>
Tue, 15 Jul 2008 06:48:44 +0000
(23:48 -0700)
committer
Roland Dreier
<
[email protected]
>
Tue, 15 Jul 2008 06:48:44 +0000
(23:48 -0700)
Signed-off-by: Robert P. J. Day <
[email protected]
>
Signed-off-by: Roland Dreier <
[email protected]
>
drivers/infiniband/hw/ipath/ipath_iba7220.c
patch
|
blob
|
history
diff --git
a/drivers/infiniband/hw/ipath/ipath_iba7220.c
b/drivers/infiniband/hw/ipath/ipath_iba7220.c
index 8eee7830f042b3d05b20fa4955295905294378a3..fb70712ac85c6d261fcf88bc7af63fef8dbfcdc3 100644
(file)
--- 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)
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++) {