projects
/
deliverable
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
IB/ipath: Replace open-coded ARRAY_SIZE with macro
[deliverable/linux.git]
/
drivers
/
infiniband
/
hw
/
ipath
/
ipath_iba6110.c
diff --git
a/drivers/infiniband/hw/ipath/ipath_iba6110.c
b/drivers/infiniband/hw/ipath/ipath_iba6110.c
index 1d7aea132a0933c9cfead1cd08fa1b7677920c94..7cc305488a3d6bf0868692bf7d8ec268a74cdcd1 100644
(file)
--- a/
drivers/infiniband/hw/ipath/ipath_iba6110.c
+++ b/
drivers/infiniband/hw/ipath/ipath_iba6110.c
@@
-596,8
+596,7
@@
static void ipath_ht_handle_hwerrors(struct ipath_devdata *dd, char *msg,
ipath_format_hwerrors(hwerrs,
ipath_6110_hwerror_msgs,
- sizeof(ipath_6110_hwerror_msgs) /
- sizeof(ipath_6110_hwerror_msgs[0]),
+ ARRAY_SIZE(ipath_6110_hwerror_msgs),
msg, msgl);
if (hwerrs & (_IPATH_HTLINK0_CRCBITS | _IPATH_HTLINK1_CRCBITS))
This page took
0.025424 seconds
and
5
git commands to generate.