[PATCH] ARM: OMAP2+: hwmod: Use kzalloc for allocating only one element

Tony Lindgren tony at atomide.com
Mon Mar 27 22:46:15 PDT 2023


* Kenneth Lee <klee33 at uw.edu> [220809 10:14]:
> Use kzalloc(...) rather than kcalloc(1, ...) because the number of
> elements we are specifying in this case is 1, so kzalloc would
> accomplish the same thing and we can simplify.

Thanks applying into omap-for-v6.4/cleanup.

Tony



More information about the linux-arm-kernel mailing list