diff options
author | Gustavo A. R. Silva <gustavo@embeddedor.com> | 2019-08-20 20:07:46 +0200 |
---|---|---|
committer | Gustavo A. R. Silva <gustavo@embeddedor.com> | 2019-08-21 02:43:23 +0200 |
commit | c9cbbb9f04f3ee27970f08d3aa6e6742a43d4ca5 (patch) | |
tree | db41b83adaa4ad0982b39f783a0c04606e3e30bf /drivers/watchdog/wdt285.c | |
parent | mtd: sa1100: Mark expected switch fall-through (diff) | |
download | linux-c9cbbb9f04f3ee27970f08d3aa6e6742a43d4ca5.tar.xz linux-c9cbbb9f04f3ee27970f08d3aa6e6742a43d4ca5.zip |
watchdog: wdt285: Mark expected switch fall-through
Mark switch cases where we are expecting to fall through.
Fix the following warning (Building: footbridge_defconfig arm):
drivers/watchdog/wdt285.c: In function ‘watchdog_ioctl’:
drivers/watchdog/wdt285.c:170:3: warning: this statement may fall through [-Wimplicit-fallthrough=]
watchdog_ping();
^~~~~~~~~~~~~~~
drivers/watchdog/wdt285.c:172:2: note: here
case WDIOC_GETTIMEOUT:
^~~~
Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Diffstat (limited to 'drivers/watchdog/wdt285.c')
-rw-r--r-- | drivers/watchdog/wdt285.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/watchdog/wdt285.c b/drivers/watchdog/wdt285.c index 4eacfb1ce1ac..eb729d704836 100644 --- a/drivers/watchdog/wdt285.c +++ b/drivers/watchdog/wdt285.c @@ -168,7 +168,7 @@ static long watchdog_ioctl(struct file *file, unsigned int cmd, soft_margin = new_margin; reload = soft_margin * (mem_fclk_21285 / 256); watchdog_ping(); - /* Fall */ + /* Fall through */ case WDIOC_GETTIMEOUT: ret = put_user(soft_margin, int_arg); break; |