提交 c86a9397 编写于 作者: M Markus Elfring 提交者: Michael Ellerman

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.pdfSigned-off-by: NMarkus Elfring <elfring@users.sourceforge.net>
Signed-off-by: NMichael Ellerman <mpe@ellerman.id.au>
上级 bab9f954
...@@ -193,7 +193,6 @@ static int axon_ram_probe(struct platform_device *device) ...@@ -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;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册