Skip to contentSkip to conversation

staging: mt7621-dma: Remove print statement on devm_kzalloc error

PATCH New Nishka Dasgupta 1 participant 1 message Apr 2, 2019

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

PATCH 1/1 staging: mt7621-dma: Remove print statement on devm_kzalloc error

Remove print statement following error of devm_kzalloc. Issue found with Coccinelle.

---
 drivers/staging/mt7621-dma/mtk-hsdma.c | 1 -
 1 file changed, 1 deletion(-)
drivers/staging/mt7621-dma/mtk-hsdma.c +0 -1
index 74c374f7bef4..0fbb9932d6bb 100644
@@ -665,7 +665,6 @@ static int mtk_hsdma_probe(struct platform_device *pdev)
 
 	hsdma = devm_kzalloc(&pdev->dev, sizeof(*hsdma), GFP_KERNEL);
 	if (!hsdma) {
-		dev_err(&pdev->dev, "alloc dma device failed\n");
 		return -EINVAL;
 	}
 
Signature · 1 line
2.19.1