Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 61ee221e authored by Markus Elfring's avatar Markus Elfring Committed by Tony Lindgren
Browse files

ARM: OMAP1: DMA: Delete an error message for a failed memory allocation in omap1_system_dma_init()

Omit an extra message for a memory allocation failure in this function.

This issue was detected by using the Coccinelle software.

Link: http://events.linuxfoundation.org/sites/events/files/slides/LCJ16-Refactor_Strings-WSang_0.pdf


Signed-off-by: default avatarMarkus Elfring <elfring@users.sourceforge.net>
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent d27a30bb
Loading
Loading
Loading
Loading
+0 −2
Original line number Original line Diff line number Diff line
@@ -341,8 +341,6 @@ static int __init omap1_system_dma_init(void)


	d = kzalloc(sizeof(*d), GFP_KERNEL);
	d = kzalloc(sizeof(*d), GFP_KERNEL);
	if (!d) {
	if (!d) {
		dev_err(&pdev->dev, "%s: Unable to allocate 'd' for %s\n",
			__func__, pdev->name);
		ret = -ENOMEM;
		ret = -ENOMEM;
		goto exit_iounmap;
		goto exit_iounmap;
	}
	}