aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/ipath/ipath_intr.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/infiniband/hw/ipath/ipath_intr.c')
-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) {