watchdog: bcm63xx_wdt: fix fallthrough warning
authorRafał Miłecki <rafal@milecki.pl>
Wed, 27 Oct 2021 12:31:35 +0000 (14:31 +0200)
committerWim Van Sebroeck <wim@linux-watchdog.org>
Wed, 27 Oct 2021 20:21:34 +0000 (22:21 +0200)
This fixes:
drivers/watchdog/bcm63xx_wdt.c: In function 'bcm63xx_wdt_ioctl':
drivers/watchdog/bcm63xx_wdt.c:208:17: warning: this statement may fall through [-Wimplicit-fallthrough=]

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20211027123135.27458-1-zajec5@gmail.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
drivers/watchdog/bcm63xx_wdt.c

index 7cdb253..56cc262 100644 (file)
@@ -207,6 +207,8 @@ static long bcm63xx_wdt_ioctl(struct file *file, unsigned int cmd,
 
                bcm63xx_wdt_pet();
 
+               fallthrough;
+
        case WDIOC_GETTIMEOUT:
                return put_user(wdt_time, p);