summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorGustavo A. R. Silva <gustavo@embeddedor.com>2018-03-27 14:33:49 -0500
committerWim Van Sebroeck <wim@linux-watchdog.org>2018-04-16 10:22:39 +0200
commite30d69df78fb2667dc58e906cabd0f70ed0af95d (patch)
tree5db2042e54318a1a0a3dceab11e2e626174f8aba /drivers
parent3ff0751fa04208459b74cfbe492df79468b8425c (diff)
downloadlinux-stable-e30d69df78fb2667dc58e906cabd0f70ed0af95d.tar.gz
linux-stable-e30d69df78fb2667dc58e906cabd0f70ed0af95d.tar.bz2
linux-stable-e30d69df78fb2667dc58e906cabd0f70ed0af95d.zip
watchdog: wafer5823wdt: Mark expected switch fall-through
In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through. Notice that in this particular case I replaced "Fall" with a proper "Fall through" comment, which is what GCC is expecting to find. Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com> Reviewed-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/watchdog/wafer5823wdt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/watchdog/wafer5823wdt.c b/drivers/watchdog/wafer5823wdt.c
index db0da7ea4fd8..93c5b610e264 100644
--- a/drivers/watchdog/wafer5823wdt.c
+++ b/drivers/watchdog/wafer5823wdt.c
@@ -178,7 +178,7 @@ static long wafwdt_ioctl(struct file *file, unsigned int cmd,
timeout = new_timeout;
wafwdt_stop();
wafwdt_start();
- /* Fall */
+ /* Fall through */
case WDIOC_GETTIMEOUT:
return put_user(timeout, p);