From: Jim Cromie Date: Wed, 11 Apr 2012 00:55:25 +0000 (-0600) Subject: IB/ipath: Replace open-coded ARRAY_SIZE with macro X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=6475f1df272fee35cb718acb5e55b51f23898e82;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git IB/ipath: Replace open-coded ARRAY_SIZE with macro Signed-off-by: Jim Cromie Acked-by: Mike Marciniszyn Signed-off-by: Roland Dreier --- 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, { 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