提交 61ee221e 编写于 作者: M Markus Elfring 提交者: Tony Lindgren

ARM: OMAP1: DMA: Delete an error message for a failed memory allocation in omap1_system_dma_init()

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: NTony Lindgren <tony@atomide.com>
上级 d27a30bb
...@@ -341,8 +341,6 @@ static int __init omap1_system_dma_init(void) ...@@ -341,8 +341,6 @@ static int __init omap1_system_dma_init(void)
d = kzalloc(sizeof(*d), GFP_KERNEL); d = kzalloc(sizeof(*d), GFP_KERNEL);
if (!d) { if (!d) {
dev_err(&pdev->dev, "%s: Unable to allocate 'd' for %s\n",
__func__, pdev->name);
ret = -ENOMEM; ret = -ENOMEM;
goto exit_iounmap; goto exit_iounmap;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册