ARM: OMAP1: DMA: Delete an unnecessary return statement in omap1_show_dma_caps()
authorMarkus Elfring <elfring@users.sourceforge.net>
Thu, 1 Jun 2017 20:00:21 +0000 (22:00 +0200)
committerTony Lindgren <tony@atomide.com>
Wed, 7 Jun 2017 06:54:00 +0000 (23:54 -0700)
The script "checkpatch.pl" pointed information out like the following.

WARNING: void function return statements are not generally useful

Thus remove such a statement in the affected function.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap1/dma.c

index c545b4e..52d7eda 100644 (file)
@@ -240,7 +240,6 @@ static void omap1_show_dma_caps(void)
                w |= 1 << 3;
                dma_write(w, GSCR, 0);
        }
-       return;
 }
 
 static unsigned configure_dma_errata(void)