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

Marek Vasut marex at denx.de
Thu Apr 16 15:06:56 CEST 2020


On 3/25/20 7:44 PM, Marek Vasut 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>

Joe, bump ?


More information about the U-Boot mailing list