Skip to contentSkip to conversation

Staging: drivers: dma: ste_dma: Prefer kcalloc over kzalloc

PATCH New Hatice ERTÜRK 1 participant 1 message Feb 19, 2015

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 6/6 Staging: drivers: dma: ste_dma: Prefer kcalloc over kzalloc

WARNING: Prefer kcalloc over kzalloc with multiply chackpatch.pl warning in ste_dma40.c

---
 drivers/dma/ste_dma40.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/dma/ste_dma40.c +1 -1
index 308795e..5cffef1 100644
@@ -3290,7 +3290,7 @@ static struct d40_base * __init d40_hw_detect_init(struct platform_device *pdev)
 		base->gen_dmac.init_reg_size = ARRAY_SIZE(dma_init_reg_v4a);
 	}
 
-	base->phy_res = kzalloc(num_phy_chans * sizeof(struct d40_phy_res),
+	base->phy_res = kcalloc(num_phy_chans * sizeof(struct d40_phy_res),
 				GFP_KERNEL);
 	if (!base->phy_res)
 		goto failure;
Signature · 1 line
1.9.1