From: Markus Elfring Date: Thu, 3 Aug 2017 17:49:18 +0000 (+0200) Subject: axonram: Delete an error message for a failed memory allocation in axon_ram_probe() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c86a93971ec7134672333e5a9758368a909d0854;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Michael Ellerman --- 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; }