diff options
author | Markus Elfring <elfring@users.sourceforge.net> | 2017-08-03 19:49:18 +0200 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2017-09-01 08:42:55 +0200 |
commit | c86a93971ec7134672333e5a9758368a909d0854 (patch) | |
tree | 40bef75d162a83f11cb42d047b95bf432d40a3cf /arch | |
parent | powerpc/powernv/npu: Move tlb flush before launching ATSD (diff) | |
download | linux-c86a93971ec7134672333e5a9758368a909d0854.tar.xz linux-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')
-rw-r--r-- | arch/powerpc/sysdev/axonram.c | 1 |
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; } |