[PATCH] powerpc/xmon/ppc-opc: Use ARRAY_SIZE macro

Tyrel Datwyler tyreld at linux.vnet.ibm.com
Fri Oct 5 08:02:46 AEST 2018


On 10/04/2018 10:10 AM, Gustavo A. R. Silva wrote:
> Use ARRAY_SIZE instead of dividing sizeof array with sizeof an element.
> 
> This code was detected with the help of Coccinelle.
> 
> Signed-off-by: Gustavo A. R. Silva <gustavo at embeddedor.com>

Reviewed-by: Tyrel Datwyler <tyreld at linux.vnet.ibm.com>



More information about the Linuxppc-dev mailing list