watchdog: scx200_wdt: Use fallthrough pseudo-keyword
Subsystems (2)
PATCH 1/1 watchdog: scx200_wdt: Use fallthrough pseudo-keyword
Replace the existing /* fall through */ comments and its variants with the new pseudo-keyword macro fallthrough[1].
Signed-off-by Gustavo A. R. Silva <[email protected]>
--- drivers/watchdog/scx200_wdt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/watchdog/scx200_wdt.c +1 -1
@@ -186,7 +186,7 @@ static long scx200_wdt_ioctl(struct file *file, unsigned int cmd, margin = new_margin;scx200_wdt_update_margin ();scx200_wdt_ping (); -/* Fall through */ + fallthrough;case WDIOC_GETTIMEOUT :if (put_user (margin, p))return -EFAULT ;
Signature · 1 line
2.27.0
Quoted 6 lines · Gustavo A. R. Silva
Replace the existing /* fall through */ comments and its variants with the new pseudo-keyword macro fallthrough[1].
Signed-off-by Gustavo A. R. Silva <[email protected]>
Reviewed-by Guenter Roeck <[email protected]>
Quoted 18 lines
--- drivers/watchdog/scx200_wdt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/watchdog/scx200_wdt.c +1
-1@@ -186,7 +186,7 @@ static long scx200_wdt_ioctl(struct file *file, unsigned int cmd, margin = new_margin;scx200_wdt_update_margin ();scx200_wdt_ping (); -/* Fall through */ + fallthrough;case WDIOC_GETTIMEOUT :if (put_user (margin, p))return -EFAULT ;