Skip to content

Commit 18a0e8d

Browse files
watchdog: Fix fall-through warnings for Clang
In preparation to enable -Wimplicit-fallthrough for Clang, fix a warning by explicitly adding a fallthrough pseudo-keyword instead of letting the code fall through to the next case. Link: KSPP#115 Signed-off-by: Gustavo A. R. Silva <[email protected]>
1 parent 47ce0b6 commit 18a0e8d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/watchdog/machzwd.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,7 @@ static inline void zf_set_timer(unsigned short new, unsigned char n)
174174
fallthrough;
175175
case WD2:
176176
zf_writeb(COUNTER_2, new > 0xff ? 0xff : new);
177+
fallthrough;
177178
default:
178179
return;
179180
}

0 commit comments

Comments
 (0)