Re: [PATCH] powerpc/xmon: use ARRAY_SIZE

From: Michael Ellerman
Date: Tue Jul 27 2021 - 23:02:10 EST


Jason Wang <wangborong@xxxxxxxxxx> writes:
> The ARRAY_SIZE is the macro definition of sizeof(a)/sizeof(a[0]) and
> it is more compact and formal to get a array size.
>
> Signed-off-by: Jason Wang <wangborong@xxxxxxxxxx>
> ---
> arch/powerpc/xmon/ppc-opc.c | 12 ++++--------
> 1 file changed, 4 insertions(+), 8 deletions(-)

This code is copied from binutils, please don't change it unnecessarily.

cheers