Skip to content

Commit c86a939

Browse files
elfringmpe
authored andcommitted
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 <[email protected]> Signed-off-by: Michael Ellerman <[email protected]>
1 parent bab9f95 commit c86a939

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

arch/powerpc/sysdev/axonram.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,6 @@ static int axon_ram_probe(struct platform_device *device)
193193

194194
bank = kzalloc(sizeof(struct axon_ram_bank), GFP_KERNEL);
195195
if (bank == NULL) {
196-
dev_err(&device->dev, "Out of memory\n");
197196
rc = -ENOMEM;
198197
goto failed;
199198
}

0 commit comments

Comments
 (0)