]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
powerpc/xmon: replace sizeof calculations with ARRAY_SIZE macro
authorRuben Wauters <rubenru09@aol.com>
Sat, 19 Jul 2025 22:43:10 +0000 (23:43 +0100)
committerMadhavan Srinivasan <maddy@linux.ibm.com>
Mon, 1 Sep 2025 08:10:46 +0000 (13:40 +0530)
commit3d9c9e1da9886d91c24d97ca20c854c29212b736
tree2c807949ad06633d66e42b700aae15069fded80d
parenta39087905af9ffecaa237a918a2c03a04e479934
powerpc/xmon: replace sizeof calculations with ARRAY_SIZE macro

The calculations for operand/opcode/macro numbers are done in an
identical manner to the already existing ARRAY_SIZE macro in
linux/array_size.h

This patch replaces the sizeof calculations with the macro to make the
code cleaner and more immediately obvious what it is doing.

Signed-off-by: Ruben Wauters <rubenru09@aol.com>
Reviewed-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Madhavan Srinivasan <maddy@linux.ibm.com>
Link: https://patch.msgid.link/20250719225225.2132-2-rubenru09@aol.com
arch/powerpc/xmon/ppc-opc.c