summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap1
diff options
context:
space:
mode:
authorMarkus Elfring <elfring@users.sourceforge.net>2017-06-01 22:04:29 +0200
committerTony Lindgren <tony@atomide.com>2017-06-07 08:54:07 +0200
commita9e317c388d48da80fc266f06dc6298cbd790b8c (patch)
tree829e31e63916dab2dc30291312a2f0e1c76327fd /arch/arm/mach-omap1
parentARM: OMAP1: DMA: Delete an unnecessary return statement in omap1_show_dma_caps() (diff)
downloadlinux-a9e317c388d48da80fc266f06dc6298cbd790b8c.tar.xz
linux-a9e317c388d48da80fc266f06dc6298cbd790b8c.zip
ARM: OMAP1: Delete an error message for a failed memory allocation in omap1_dm_timer_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: Markus Elfring <elfring@users.sourceforge.net> Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/mach-omap1')
-rw-r--r--arch/arm/mach-omap1/timer.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/arch/arm/mach-omap1/timer.c b/arch/arm/mach-omap1/timer.c
index 06c5ba7574a5..637f8c9d9f10 100644
--- a/arch/arm/mach-omap1/timer.c
+++ b/arch/arm/mach-omap1/timer.c
@@ -134,8 +134,6 @@ static int __init omap1_dm_timer_init(void)
pdata = kzalloc(sizeof(*pdata), GFP_KERNEL);
if (!pdata) {
- dev_err(&pdev->dev, "%s: Failed to allocate pdata.\n",
- __func__);
ret = -ENOMEM;
goto err_free_pdata;
}