aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband
diff options
context:
space:
mode:
authorJim Cromie <jim.cromie@gmail.com>2012-04-10 20:55:25 -0400
committerRoland Dreier <roland@purestorage.com>2012-05-08 14:17:20 -0400
commit6475f1df272fee35cb718acb5e55b51f23898e82 (patch)
tree5dff0f9f3c82de283571234fbc7fd7add461d126 /drivers/infiniband
parentd48b97b403d23f6df0b990cee652bdf9a52337a3 (diff)
IB/ipath: Replace open-coded ARRAY_SIZE with macro
Signed-off-by: Jim Cromie <jim.cromie@gmail.com> Acked-by: Mike Marciniszyn <mike.marciniszyn@intel.com> Signed-off-by: Roland Dreier <roland@purestorage.com>
Diffstat (limited to 'drivers/infiniband')
-rw-r--r--drivers/infiniband/hw/ipath/ipath_intr.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/infiniband/hw/ipath/ipath_intr.c b/drivers/infiniband/hw/ipath/ipath_intr.c
index c0a03ac03ee7..26dfbc8ee0f1 100644
--- a/drivers/infiniband/hw/ipath/ipath_intr.c
+++ b/drivers/infiniband/hw/ipath/ipath_intr.c
@@ -209,8 +209,7 @@ void ipath_format_hwerrors(u64 hwerrs,
209{ 209{
210 int i; 210 int i;
211 const int glen = 211 const int glen =
212 sizeof(ipath_generic_hwerror_msgs) / 212 ARRAY_SIZE(ipath_generic_hwerror_msgs);
213 sizeof(ipath_generic_hwerror_msgs[0]);
214 213
215 for (i=0; i<glen; i++) { 214 for (i=0; i<glen; i++) {
216 if (hwerrs & ipath_generic_hwerror_msgs[i].mask) { 215 if (hwerrs & ipath_generic_hwerror_msgs[i].mask) {