]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ARM: OMAP1: DMA: Delete an error message for a failed memory allocation in omap1_syst...
authorMarkus Elfring <elfring@users.sourceforge.net>
Thu, 1 Jun 2017 19:54:36 +0000 (21:54 +0200)
committerTony Lindgren <tony@atomide.com>
Wed, 7 Jun 2017 06:53:55 +0000 (23:53 -0700)
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>
arch/arm/mach-omap1/dma.c

index 823dba3dc033caacfb37c245268e410e32a36cc8..c545b4e01d53ad1439e585ea064f262a32269315 100644 (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;
        }