Commit 18a0e8d0 authored by Gustavo A. R. Silva's avatar Gustavo A. R. Silva
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: https://github.com/KSPP/linux/issues/115


Signed-off-by: default avatarGustavo A. R. Silva <gustavoars@kernel.org>
parent 47ce0b65
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -174,6 +174,7 @@ static inline void zf_set_timer(unsigned short new, unsigned char n)
		fallthrough;
	case WD2:
		zf_writeb(COUNTER_2, new > 0xff ? 0xff : new);
		fallthrough;
	default:
		return;
	}