staging: mt7621-dma: Remove print statement on devm_kzalloc error
authorNishka Dasgupta <nishka.dasgupta@yahoo.com>
Tue, 2 Apr 2019 20:22:17 +0000 (01:52 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Apr 2019 09:08:00 +0000 (11:08 +0200)
Remove print statement following error of devm_kzalloc. Issue found with
Coccinelle.

Signed-off-by: Nishka Dasgupta <nishka.dasgupta@yahoo.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/mt7621-dma/mtk-hsdma.c

index 74c374f..0fbb993 100644 (file)
@@ -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;
        }