Skip to content

Commit e879f85

Browse files
nathanchancetmlind
authored andcommitted
bus: ti-sysc: Add break in switch statement in sysc_init_soc()
After commit a6d90e9 ("bus: ti-sysc: AM3: RNG is GP only"), clang with -Wimplicit-fallthrough enabled warns: drivers/bus/ti-sysc.c:2958:3: warning: unannotated fall-through between switch labels [-Wimplicit-fallthrough] default: ^ drivers/bus/ti-sysc.c:2958:3: note: insert 'break;' to avoid fall-through default: ^ break; 1 warning generated. Clang's version of this warning is a little bit more pedantic than GCC's. Add the missing break to satisfy it to match what has been done all over the kernel tree. Fixes: a6d90e9 ("bus: ti-sysc: AM3: RNG is GP only") Signed-off-by: Nathan Chancellor <[email protected]> Reviewed-by: Nick Desaulniers <[email protected]> Signed-off-by: Tony Lindgren <[email protected]>
1 parent 06a089e commit e879f85

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/bus/ti-sysc.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2955,6 +2955,7 @@ static int sysc_init_soc(struct sysc *ddata)
29552955
break;
29562956
case SOC_AM3:
29572957
sysc_add_disabled(0x48310000); /* rng */
2958+
break;
29582959
default:
29592960
break;
29602961
}

0 commit comments

Comments
 (0)