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>
This commit is contained in:
parent
d48b97b403
commit
6475f1df27
1 changed files with 1 additions and 2 deletions
|
@ -209,8 +209,7 @@ void ipath_format_hwerrors(u64 hwerrs,
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
const int glen =
|
const int glen =
|
||||||
sizeof(ipath_generic_hwerror_msgs) /
|
ARRAY_SIZE(ipath_generic_hwerror_msgs);
|
||||||
sizeof(ipath_generic_hwerror_msgs[0]);
|
|
||||||
|
|
||||||
for (i=0; i<glen; i++) {
|
for (i=0; i<glen; i++) {
|
||||||
if (hwerrs & ipath_generic_hwerror_msgs[i].mask) {
|
if (hwerrs & ipath_generic_hwerror_msgs[i].mask) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue