mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 20:51:03 +02:00
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: Gustavo A. R. Silva <gustavoars@kernel.org>
This commit is contained in:
@@ -174,6 +174,7 @@ static inline void zf_set_timer(unsigned short new, unsigned char n)
|
|||||||
fallthrough;
|
fallthrough;
|
||||||
case WD2:
|
case WD2:
|
||||||
zf_writeb(COUNTER_2, new > 0xff ? 0xff : new);
|
zf_writeb(COUNTER_2, new > 0xff ? 0xff : new);
|
||||||
|
fallthrough;
|
||||||
default:
|
default:
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user