projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bab9f95
)
axonram: Delete an error message for a failed memory allocation in axon_ram_probe()
author
Markus Elfring
<elfring@users.sourceforge.net>
Thu, 3 Aug 2017 17:49:18 +0000
(19:49 +0200)
committer
Michael Ellerman
<mpe@ellerman.id.au>
Fri, 1 Sep 2017 06:42:55 +0000
(16:42 +1000)
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: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/sysdev/axonram.c
patch
|
blob
|
history
diff --git
a/arch/powerpc/sysdev/axonram.c
b/arch/powerpc/sysdev/axonram.c
index 072296eba3e7bf1ecbb8b0a30447af2fae19f08e..89736bb65af9fa4e7ccded12351596208f019ced 100644
(file)
--- a/
arch/powerpc/sysdev/axonram.c
+++ b/
arch/powerpc/sysdev/axonram.c
@@
-193,7
+193,6
@@
static int axon_ram_probe(struct platform_device *device)
bank = kzalloc(sizeof(struct axon_ram_bank), GFP_KERNEL);
if (bank == NULL) {
- dev_err(&device->dev, "Out of memory\n");
rc = -ENOMEM;
goto failed;
}