projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2abe5b3
)
ARM: OMAP1: Delete an error message for a failed memory allocation in omap1_dm_timer_...
author
Markus Elfring
<elfring@users.sourceforge.net>
Thu, 1 Jun 2017 20:04:29 +0000
(22:04 +0200)
committer
Tony Lindgren
<tony@atomide.com>
Wed, 7 Jun 2017 06:54:07 +0000
(23:54 -0700)
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>
arch/arm/mach-omap1/timer.c
patch
|
blob
|
history
diff --git
a/arch/arm/mach-omap1/timer.c
b/arch/arm/mach-omap1/timer.c
index
06c5ba7
..
637f8c9
100644
(file)
--- 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;
}