watchdog: sbc7240_wdt: Fix yet another -Wimplicit-fallthrough warning
authorBorislav Petkov <bp@suse.de>
Sun, 29 Sep 2019 11:46:49 +0000 (13:46 +0200)
committerWim Van Sebroeck <wim@linux-watchdog.org>
Mon, 18 Nov 2019 18:53:40 +0000 (19:53 +0100)
... by moving the fall through comment outside of the code block so that
gcc sees it.

No functional changes.

Signed-off-by: Borislav Petkov <bp@suse.de>
Cc: Wim Van Sebroeck <wim@linux-watchdog.org>
Cc: Guenter Roeck <linux@roeck-us.net>
Cc: linux-watchdog@vger.kernel.org
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20190929114649.22740-1-bp@alien8.de
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
drivers/watchdog/sbc7240_wdt.c

index 12cdee7d5069ccdca795de93f8e64e9b37530601..90d67e6d8e8b433c761af755ff8eb606fd96d312 100644 (file)
@@ -194,9 +194,8 @@ static long fop_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
 
                if (wdt_set_timeout(new_timeout))
                        return -EINVAL;
-
-               /* Fall through */
        }
+       /* Fall through */
        case WDIOC_GETTIMEOUT:
                return put_user(timeout, (int __user *)arg);
        default: