net: stmmac: selftests: Use kcalloc() instead of kzalloc()
Subsystems (4)
PATCH 1/1 net: stmmac: selftests: Use kcalloc() instead of kzalloc()
Use 2-factor multiplication argument form kcalloc() instead of kzalloc().
--- drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c +2 -2
@@ -1104,13 +1104,13 @@ static int stmmac_test_rxp(struct stmmac_priv *priv) goto cleanup_sel; } - actions =kzalloc (nk *sizeof (*actions),GFP_KERNEL ); + actions =kcalloc (nk,sizeof (*actions),GFP_KERNEL );if (!actions) { ret = -ENOMEM ; goto cleanup_exts; } - act =kzalloc (nk *sizeof (*act),GFP_KERNEL ); + act =kcalloc (nk,sizeof (*act),GFP_KERNEL );if (!act) { ret = -ENOMEM ; goto cleanup_actions;
Signature · 1 line
2.27.0
This patch was applied to netdev/net-next.git (master) by Jakub Kicinski <[email protected]>:
Hello:
This patch was applied to netdev/net-next.git (master) by Jakub Kicinski <[email protected]>:
Quoted 8 lines · On Wed, 6 Oct 2021 13:09:44 -0500 you wrote:
Use 2-factor multiplication argument form
kcalloc()instead ofkzalloc().--- drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
Here is the summary with links:
- [next] net: stmmac: selftests: Use kcalloc() instead of kzalloc()
https://git.kernel.org/netdev/net-next/c/36371876e000
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel