diff options
author | Mike Marciniszyn <mike.marciniszyn@qlogic.com> | 2012-04-19 11:59:15 -0400 |
---|---|---|
committer | Roland Dreier <roland@purestorage.com> | 2012-05-08 14:17:20 -0400 |
commit | 464357a7591302a98a5dbede7515c72adf4f2fef (patch) | |
tree | a770700d76b4dd96276b239756ba21f54c603837 | |
parent | 6475f1df272fee35cb718acb5e55b51f23898e82 (diff) |
IB/ipath: Replace open-coded ARRAY_SIZE with macro
Change sizeof(array)/sizeof(array[0]) to ARRAY_SIZE.
Signed-off-by: Mike Marciniszyn <mike.marciniszyn@qlogic.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
-rw-r--r-- | drivers/infiniband/hw/ipath/ipath_iba6110.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/infiniband/hw/ipath/ipath_iba6110.c b/drivers/infiniband/hw/ipath/ipath_iba6110.c index 1d7aea132a09..7cc305488a3d 100644 --- 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, | |||
596 | 596 | ||
597 | ipath_format_hwerrors(hwerrs, | 597 | ipath_format_hwerrors(hwerrs, |
598 | ipath_6110_hwerror_msgs, | 598 | ipath_6110_hwerror_msgs, |
599 | sizeof(ipath_6110_hwerror_msgs) / | 599 | ARRAY_SIZE(ipath_6110_hwerror_msgs), |
600 | sizeof(ipath_6110_hwerror_msgs[0]), | ||
601 | msg, msgl); | 600 | msg, msgl); |
602 | 601 | ||
603 | if (hwerrs & (_IPATH_HTLINK0_CRCBITS | _IPATH_HTLINK1_CRCBITS)) | 602 | if (hwerrs & (_IPATH_HTLINK0_CRCBITS | _IPATH_HTLINK1_CRCBITS)) |