]> git.dujemihanovic.xyz Git - u-boot.git/commit
net: smc911x: Replace malloc()+memset() with calloc()
authorMarek Vasut <marek.vasut+renesas@gmail.com>
Sun, 15 Mar 2020 14:14:18 +0000 (15:14 +0100)
committermarex <marex@desktop.lan>
Fri, 1 May 2020 10:35:21 +0000 (12:35 +0200)
commit882d5f6983ff23b6f09899bb43d6dfd90ed7492f
tree28fd4bd9734a698c4ba286462a05779235a1e961
parent9c211e3b055ce809ac81ea4f849594ffb6f77df4
net: smc911x: 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.

Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>
Cc: Joe Hershberger <joe.hershberger@ni.com>
Cc: Masahiro Yamada <yamada.masahiro@socionext.com>
drivers/net/smc911x.c