diff options
author | Markus Elfring <elfring@users.sourceforge.net> | 2017-06-01 22:04:29 +0200 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2017-06-06 23:54:07 -0700 |
commit | a9e317c388d48da80fc266f06dc6298cbd790b8c (patch) | |
tree | 829e31e63916dab2dc30291312a2f0e1c76327fd | |
parent | 2abe5b343dc790cc577700b07ca8d10fed62ae0e (diff) | |
download | linux-a9e317c388d48da80fc266f06dc6298cbd790b8c.tar.bz2 |
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>
-rw-r--r-- | arch/arm/mach-omap1/timer.c | 2 |
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; } |