aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/sysdev/axonram.c
diff options
context:
space:
mode:
authorMarkus Elfring <elfring@users.sourceforge.net>2017-08-03 19:49:18 +0200
committerMichael Ellerman <mpe@ellerman.id.au>2017-09-01 16:42:55 +1000
commitc86a93971ec7134672333e5a9758368a909d0854 (patch)
tree40bef75d162a83f11cb42d047b95bf432d40a3cf /arch/powerpc/sysdev/axonram.c
parentpowerpc/powernv/npu: Move tlb flush before launching ATSD (diff)
downloadlinux-dev-c86a93971ec7134672333e5a9758368a909d0854.tar.xz
linux-dev-c86a93971ec7134672333e5a9758368a909d0854.zip
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/axonram.c')
-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;
}