From: Nishka Dasgupta Date: Tue, 2 Apr 2019 20:22:17 +0000 (+0530) Subject: staging: mt7621-dma: Remove print statement on devm_kzalloc error X-Git-Tag: v5.2-rc1~153^2~170 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b5243475c1c7374d5d6761b41a0d332ba032581e;p=thirdparty%2Flinux.git staging: mt7621-dma: Remove print statement on devm_kzalloc error Remove print statement following error of devm_kzalloc. Issue found with Coccinelle. Signed-off-by: Nishka Dasgupta Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/mt7621-dma/mtk-hsdma.c b/drivers/staging/mt7621-dma/mtk-hsdma.c index 74c374f7bef49..0fbb9932d6bbd 100644 --- a/drivers/staging/mt7621-dma/mtk-hsdma.c +++ b/drivers/staging/mt7621-dma/mtk-hsdma.c @@ -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; }