commit | 033a879717b4f76ffdc800bef9d635d404299fe2 | [log] [tgz] |
---|---|---|
author | Marek Vasut <marex@denx.de> | Wed Mar 25 16:52:38 2020 +0100 |
committer | Marek Vasut <marex@denx.de> | Fri May 22 19:46:45 2020 +0200 |
tree | 1dc2fb0ab8cdbf87a452a511f0002dd61610cd0f | |
parent | 555de4bbb5b233aa74578f55a55ab4aee4503727 [diff] |
net: ks8851: Replace malloc()+memset() with calloc() 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@denx.de> Cc: Eugen Hristev <eugen.hristev@microchip.com> Cc: Joe Hershberger <joe.hershberger@ni.com>