Skip to contentSkip to conversation

OMAP2: powerdomain: Add break in switch statement

PATCH In review Thomas Weber 3 participants 3 messages Jul 9, 2010 – Aug 3, 2010

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

PATCH 1/1 OMAP2: powerdomain: Add break in switch statement

Add a missing break at end of switch statement. At the moment it is a fall through to WARN_ON(1) and return -EEXIST.

---
 arch/arm/mach-omap2/powerdomain.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
arch/arm/mach-omap2/powerdomain.c +1 -0
index a2904aa..6527ec3 100644
@@ -875,6 +875,7 @@ int pwrdm_read_mem_retst(struct powerdomain *pwrdm, u8 bank)
 		break;
 	case 4:
 		m = OMAP_MEM4_RETSTATE_MASK;
+		break;
 	default:
 		WARN_ON(1); /* should never happen */
 		return -EEXIST;
Signature · 1 line
1.7.1
maintainer
#2 lore raw
Quoted 7 lines · Paul Walmsley
Quoted 4 lines · Thomas Weber

Add a missing break at end of switch statement. At the moment it is a fall through to WARN_ON(1) and return -EEXIST.

Quoted 7 lines

Thanks Thomas.

Tony, this is

if you want it for .36; otherwise, can queue it for .37 here.

Thanks, I've added it into omap-for-linus.

Regards,

Tony