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.pdf
Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Tony Lindgren <tony@atomide.com>
This commit is contained in:
Markus Elfring 2017-06-01 21:54:36 +02:00 committed by Tony Lindgren
parent d27a30bbc8
commit 61ee221ee4

View File

@ -341,8 +341,6 @@ static int __init omap1_system_dma_init(void)
d = kzalloc(sizeof(*d), GFP_KERNEL);
if (!d) {
dev_err(&pdev->dev, "%s: Unable to allocate 'd' for %s\n",
__func__, pdev->name);
ret = -ENOMEM;
goto exit_iounmap;
}