summaryrefslogtreecommitdiff
path: root/drivers/ddr/imx/imx8m/ddrphy_utils.c
diff options
context:
space:
mode:
authorMarek Vasut <marex@denx.de>2020-03-25 16:52:38 +0100
committerMarek Vasut <marex@denx.de>2020-05-22 19:46:45 +0200
commite3b54cda6893726703a1fae66e9521bc231464cf (patch)
tree1dc2fb0ab8cdbf87a452a511f0002dd61610cd0f /drivers/ddr/imx/imx8m/ddrphy_utils.c
parent2fa581ba910368d0f7f995fb906d6c5e4218b594 (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>
Diffstat (limited to 'drivers/ddr/imx/imx8m/ddrphy_utils.c')
0 files changed, 0 insertions, 0 deletions