On 06.08.2022 22:16:56, Kenneth Lee wrote: > Use kzalloc(...) rather than kcalloc(1, ...) since because the number of > elements we are specifying in this case is 1, kzalloc would accomplish the > same thing and we can simplify. Also refactor how we calculate the sizeof() > as checkstyle for kzalloc() prefers using the variable we are assigning > to versus the type of that variable for calculating the size to allocate. > > Signed-off-by: Kenneth Lee <klee33@xxxxxx> Added to can-next/testing. Thanks, Marc -- Pengutronix e.K. | Marc Kleine-Budde | Embedded Linux | https://www.pengutronix.de | Vertretung West/Dortmund | Phone: +49-231-2826-924 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
Attachment:
signature.asc
Description: PGP signature