Staging: drivers: dma: ste_dma: Prefer kcalloc over kzalloc
Subsystems (2)
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
Signed-off-by Hatice ERTURK <[email protected]>
--- drivers/dma/ste_dma40.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/dma/ste_dma40.c +1 -1
@@ -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