]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
staging: ralink-gdma: Remove print statement on failure of devm_kzalloc
authorNishka Dasgupta <nishka.dasgupta@yahoo.com>
Tue, 2 Apr 2019 20:24:09 +0000 (01:54 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Apr 2019 09:08:01 +0000 (11:08 +0200)
Remove print statement after failure 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/ralink-gdma/ralink-gdma.c

index b6d4845322695e3d003f496b2cb4ced7ca97b288..e8c0c8d0dea57108d5fc5f8de44283dc3235a1fb 100644 (file)
@@ -826,7 +826,6 @@ static int gdma_dma_probe(struct platform_device *pdev)
                               struct_size(dma_dev, chan, data->chancnt),
                               GFP_KERNEL);
        if (!dma_dev) {
-               dev_err(&pdev->dev, "alloc dma device failed\n");
                return -EINVAL;
        }
        dma_dev->data = data;