Skip to contentSkip to conversation

mach-omap2:Remove unnessary return statement from the void function, omap2_show_dma_caps

PATCH RESEND In review Nicholas Krause 2 participants 2 messages May 28, 2015 – Jun 1, 2015

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH RESEND 1/1 mach-omap2:Remove unnessary return statement from the void function, omap2_show_dma_caps

This removes the no longer required return statement at the end of the void function, omap2_show_dma_cap due to no need for a return statement due to this function always running successfully.

---
 arch/arm/mach-omap2/dma.c | 1 -
 1 file changed, 1 deletion(-)
arch/arm/mach-omap2/dma.c +0 -1
index e1a56d8..1ed4be1 100644
@@ -117,7 +117,6 @@ static void omap2_show_dma_caps(void)
 	u8 revision = dma_read(REVISION, 0) & 0xff;
 	printk(KERN_INFO "OMAP DMA hardware revision %d.%d\n",
 				revision >> 4, revision & 0xf);
-	return;
 }
 
 static unsigned configure_dma_errata(void)
Signature · 1 line
2.1.4
maintainer
#1 lore raw
Quoted 14 lines · Nicholas Krause

This removes the no longer required return statement at the end of the void function, omap2_show_dma_cap due to no need for a return statement due to this function always running successfully.

---
 arch/arm/mach-omap2/dma.c | 1 -
 1 file changed, 1 deletion(-)
arch/arm/mach-omap2/dma.c +0 -0
index e1a56d8..1ed4be1 100644

arch/arm/mach-omap2/dma.c static void omap2_show_dma_caps(void) · line 122

Quoted 7 lines
arch/arm/mach-omap2/dma.c +0 -1
@@ -117,7 +117,6 @@ static void omap2_show_dma_caps(void)
 	u8 revision = dma_read(REVISION, 0) & 0xff;
 	printk(KERN_INFO "OMAP DMA hardware revision %d.%d\n",
 				revision >> 4, revision & 0xf);
-	return;
 }
 
 static unsigned configure_dma_errata(void)

Sorry for the delay, applying this into omap-for-v4.2/fixes as it's not urgent.

Regards,

Tony