[PATCH 01/12] net: ks8851: Replace malloc()+memset() with calloc()

Joe Hershberger joe.hershberger at ni.com
Thu Apr 16 15:57:54 CEST 2020


On Wed, Mar 25, 2020 at 1:45 PM Marek Vasut <marex at denx.de> wrote:
>
> Replace combination of malloc()+memset() with calloc() as the behavior
> is exactly the same and the amount of code is reduced. Moreover, remove
> printf() in the fail path, as it is useless, and return proper -ENOMEM
> return code.
>
> Signed-off-by: Marek Vasut <marex at denx.de>
> Cc: Eugen Hristev <eugen.hristev at microchip.com>
> Cc: Joe Hershberger <joe.hershberger at ni.com>

Acked-by: Joe Hershberger <joe.hershberger at ni.com>


More information about the U-Boot mailing list