Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 464357a7 authored by Mike Marciniszyn's avatar Mike Marciniszyn Committed by Roland Dreier
Browse files

IB/ipath: Replace open-coded ARRAY_SIZE with macro



Change sizeof(array)/sizeof(array[0]) to ARRAY_SIZE.

Signed-off-by: default avatarMike Marciniszyn <mike.marciniszyn@qlogic.com>
Signed-off-by: default avatarRoland Dreier <roland@purestorage.com>
parent 6475f1df
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -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))