summaryrefslogtreecommitdiff
path: root/arch/powerpc/sysdev
diff options
context:
space:
mode:
authorMarkus Elfring <elfring@users.sourceforge.net>2017-08-03 20:49:18 +0300
committerMichael Ellerman <mpe@ellerman.id.au>2017-09-01 09:42:55 +0300
commitc86a93971ec7134672333e5a9758368a909d0854 (patch)
tree40bef75d162a83f11cb42d047b95bf432d40a3cf /arch/powerpc/sysdev
parentbab9f954aaf352127725a9b7920226abdb65b604 (diff)
downloadlinux-c86a93971ec7134672333e5a9758368a909d0854.tar.xz
axonram: Delete an error message for a failed memory allocation in axon_ram_probe()
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>
Diffstat (limited to 'arch/powerpc/sysdev')
-rw-r--r--arch/powerpc/sysdev/axonram.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/arch/powerpc/sysdev/axonram.c b/arch/powerpc/sysdev/axonram.c
index 072296eba3e7..89736bb65af9 100644
--- 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;
}