watchdog/sbc7240_wdt: Fix yet another -Wimplicit-fallthrough warning
PATCH 1/1 watchdog/sbc7240_wdt: Fix yet another -Wimplicit-fallthrough warning
From: Borislav Petkov <[email protected]>
... by moving the fall through comment outside of the code block so that gcc sees it.
No functional changes.
Signed-off-by Borislav Petkov <[email protected]>
Cc Wim Van Sebroeck <[email protected]>
Cc Guenter Roeck <[email protected]>
--- drivers/watchdog/sbc7240_wdt.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/watchdog/sbc7240_wdt.c +1 -2
@@ -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 :
Signature · 1 line
2.21.0
Quoted 11 lines · Borislav Petkov
From: Borislav Petkov <[email protected]>
... by moving the fall through comment outside of the code block so that gcc sees it.
No functional changes.
Signed-off-by Borislav Petkov <[email protected]>Cc Wim Van Sebroeck <[email protected]>Cc Guenter Roeck <[email protected]>
Reviewed-by Guenter Roeck <[email protected]>
Quoted 20 lines
--- drivers/watchdog/sbc7240_wdt.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)drivers/watchdog/sbc7240_wdt.c +1
-2@@ -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 :