Skip to content

Commit

Permalink
watchdog: sbc7240_wdt: Fix yet another -Wimplicit-fallthrough warning
Browse files Browse the repository at this point in the history
... 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]>
Cc: [email protected]
Reviewed-by: Guenter Roeck <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Guenter Roeck <[email protected]>
Signed-off-by: Wim Van Sebroeck <[email protected]>
  • Loading branch information
suryasaimadhu authored and Wim Van Sebroeck committed Nov 18, 2019
1 parent ff0aaac commit b6276d4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/watchdog/sbc7240_wdt.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit b6276d4

Please sign in to comment.