diff options
author | Markus Elfring <elfring@users.sourceforge.net> | 2017-06-01 16:04:29 -0400 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2017-06-07 02:54:07 -0400 |
commit | a9e317c388d48da80fc266f06dc6298cbd790b8c (patch) | |
tree | 829e31e63916dab2dc30291312a2f0e1c76327fd | |
parent | 2abe5b343dc790cc577700b07ca8d10fed62ae0e (diff) |
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) | |||
134 | 134 | ||
135 | pdata = kzalloc(sizeof(*pdata), GFP_KERNEL); | 135 | pdata = kzalloc(sizeof(*pdata), GFP_KERNEL); |
136 | if (!pdata) { | 136 | if (!pdata) { |
137 | dev_err(&pdev->dev, "%s: Failed to allocate pdata.\n", | ||
138 | __func__); | ||
139 | ret = -ENOMEM; | 137 | ret = -ENOMEM; |
140 | goto err_free_pdata; | 138 | goto err_free_pdata; |
141 | } | 139 | } |