Skip to contentSkip to conversation

staging: ralink-gdma: Remove print statement on failure of devm_kzalloc

PATCH In review Nishka Dasgupta 2 participants 2 messages Apr 2, 2019 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: ralink-gdma: Remove print statement on failure of devm_kzalloc

Remove print statement after failure of devm_kzalloc. Issue found with Coccinelle.

---
 drivers/staging/ralink-gdma/ralink-gdma.c | 1 -
 1 file changed, 1 deletion(-)
drivers/staging/ralink-gdma/ralink-gdma.c +0 -1
index b6d484532269..e8c0c8d0dea5 100644
@@ -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;
Signature · 1 line
2.19.1
#1 lore raw
Quoted 2 lines · Nishka Dasgupta' via outreachy-kernel

Remove print statement after failure of devm_kzalloc. Issue found with Coccinelle.

Hi,

The application period is actually over. If you have some left over revisions of patches you started during the application period, then you can post them here. Otherwise, you can continue contributing, but just use get_maintainer.pl to find out who to send patches to, rather than using the mailing list.

Thanks everyone for so many contributions!

julia

Quoted 28 lines
---
 drivers/staging/ralink-gdma/ralink-gdma.c | 1 -
 1 file changed, 1 deletion(-)
drivers/staging/ralink-gdma/ralink-gdma.c +0 -2
index b6d484532269..e8c0c8d0dea5 100644
@@ -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;
--

2.19.1

--
You received this message because you are subscribed to the Google Groups "outreachy-kernel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/outreachy-kernel/20190402202409.3613-1-nishka.dasgupta%40yahoo.com.
For more options, visit https://groups.google.com/d/optout.