]> git.baikalelectronics.ru Git - kernel.git/commit
watchdog: wdt285: Mark expected switch fall-through
authorGustavo A. R. Silva <gustavo@embeddedor.com>
Tue, 20 Aug 2019 18:07:46 +0000 (13:07 -0500)
committerGustavo A. R. Silva <gustavo@embeddedor.com>
Wed, 21 Aug 2019 00:43:23 +0000 (19:43 -0500)
commitbc170ac0060c6c29a232c09733ec9b7cfdaea4f8
treedb41b83adaa4ad0982b39f783a0c04606e3e30bf
parenta22db04d6c93d2776b788cc743832dbebbf3efc2
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>
drivers/watchdog/wdt285.c