aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/plat-omap/dmtimer.c
diff options
context:
space:
mode:
authorMarkus Elfring <elfring@users.sourceforge.net>2017-10-03 13:10:26 +0200
committerTony Lindgren <tony@atomide.com>2017-10-11 11:12:53 -0700
commitd679950cb9233903f0de011d81e42e2e56c3573d (patch)
tree636ccb10fc953a3b9fe8dcdf6ea323479d64f693 /arch/arm/plat-omap/dmtimer.c
parentARM: OMAP2+: make omap_dma_dev_info __initdata (diff)
downloadlinux-dev-d679950cb9233903f0de011d81e42e2e56c3573d.tar.xz
linux-dev-d679950cb9233903f0de011d81e42e2e56c3573d.zip
ARM: OMAP: Delete an error message for a failed memory allocation in two functions
Omit extra messages for a memory allocation failure in these functions. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring <elfring@users.sourceforge.net> Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/plat-omap/dmtimer.c')
-rw-r--r--arch/arm/plat-omap/dmtimer.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/arm/plat-omap/dmtimer.c b/arch/arm/plat-omap/dmtimer.c
index 7a327bd32521..446ac0e3a35a 100644
--- a/arch/arm/plat-omap/dmtimer.c
+++ b/arch/arm/plat-omap/dmtimer.c
@@ -858,10 +858,8 @@ static int omap_dm_timer_probe(struct platform_device *pdev)
}
timer = devm_kzalloc(dev, sizeof(struct omap_dm_timer), GFP_KERNEL);
- if (!timer) {
- dev_err(dev, "%s: memory alloc failed!\n", __func__);
+ if (!timer)
return -ENOMEM;
- }
timer->fclk = ERR_PTR(-ENODEV);
timer->io_base = devm_ioremap_resource(dev, mem);