]> 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)
commit398a1d2187e9a96a96da256534ffa08c9b1de10d
treedb41b83adaa4ad0982b39f783a0c04606e3e30bf
parent0d27abd2a4d3cce1cef842c2422f69ea794f0b7c
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