summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNishka Dasgupta <nishka.dasgupta@yahoo.com>2019-04-03 01:54:09 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-04-03 11:08:01 +0200
commit4e37138ed3f9bf4d18f5b4dad7924c47fd56d97f (patch)
tree3e72e1c6c0c5424eb50d8d3dbc0b4aaf71fd089a
parentb5243475c1c7374d5d6761b41a0d332ba032581e (diff)
staging: ralink-gdma: Remove print statement on failure of devm_kzalloc
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>
-rw-r--r--drivers/staging/ralink-gdma/ralink-gdma.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/staging/ralink-gdma/ralink-gdma.c b/drivers/staging/ralink-gdma/ralink-gdma.c
index b6d484532269..e8c0c8d0dea5 100644
--- a/drivers/staging/ralink-gdma/ralink-gdma.c
+++ b/drivers/staging/ralink-gdma/ralink-gdma.c
@@ -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;