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

Commit 6475f1df authored by Jim Cromie's avatar Jim Cromie Committed by Roland Dreier
Browse files

IB/ipath: Replace open-coded ARRAY_SIZE with macro

parent d48b97b4
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -209,8 +209,7 @@ void ipath_format_hwerrors(u64 hwerrs,
{
	int i;
	const int glen =
	    sizeof(ipath_generic_hwerror_msgs) /
	    sizeof(ipath_generic_hwerror_msgs[0]);
	    ARRAY_SIZE(ipath_generic_hwerror_msgs);

	for (i=0; i<glen; i++) {
		if (hwerrs & ipath_generic_hwerror_msgs[i].mask) {