[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <cda37778-b59c-ae5e-529d-b435750dcd8f@users.sourceforge.net>
Date: Thu, 1 Jun 2017 22:49:06 +0200
From: SF Markus Elfring <elfring@...rs.sourceforge.net>
To: linux-omap@...r.kernel.org, linux-arm-kernel@...ts.infradead.org,
Aaro Koskinen <aaro.koskinen@....fi>,
Russell King <linux@...linux.org.uk>,
Tony Lindgren <tony@...mide.com>
Cc: LKML <linux-kernel@...r.kernel.org>,
kernel-janitors@...r.kernel.org
Subject: [PATCH 2/5] ARM: OMAP1: DMA: Delete an error message for a failed
memory allocation in omap1_system_dma_init()
From: Markus Elfring <elfring@...rs.sourceforge.net>
Date: Thu, 1 Jun 2017 21:54:36 +0200
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: Markus Elfring <elfring@...rs.sourceforge.net>
---
arch/arm/mach-omap1/dma.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/arch/arm/mach-omap1/dma.c b/arch/arm/mach-omap1/dma.c
index 823dba3dc033..c545b4e01d53 100644
--- a/arch/arm/mach-omap1/dma.c
+++ b/arch/arm/mach-omap1/dma.c
@@ -343,6 +343,4 @@ static int __init omap1_system_dma_init(void)
if (!d) {
- dev_err(&pdev->dev, "%s: Unable to allocate 'd' for %s\n",
- __func__, pdev->name);
ret = -ENOMEM;
goto exit_iounmap;
}
--
2.13.0
Powered by blists - more mailing lists