Browse Source

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>
Markus Elfring 8 years ago
parent
commit
c86a93971e
1 changed files with 0 additions and 1 deletions
  1. 0 1
      arch/powerpc/sysdev/axonram.c

+ 0 - 1
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);
 	bank = kzalloc(sizeof(struct axon_ram_bank), GFP_KERNEL);
 	if (bank == NULL) {
 	if (bank == NULL) {
-		dev_err(&device->dev, "Out of memory\n");
 		rc = -ENOMEM;
 		rc = -ENOMEM;
 		goto failed;
 		goto failed;
 	}
 	}