[PATCH] powerpc/xmon: use ARRAY_SIZE
Michael Ellerman
mpe at ellerman.id.au
Wed Jul 28 13:01:44 AEST 2021
Jason Wang <wangborong at cdjrlc.com> 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 at cdjrlc.com>
> ---
> 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
More information about the Linuxppc-dev
mailing list