watchdog: remove unneeded break
PATCH 1/1 watchdog: remove unneeded break
From: Tom Rix <[email protected]>
A break is not needed if it is preceded by a return
Signed-off-by Tom Rix <[email protected]>
--- drivers/watchdog/geodewdt.c | 2 -- 1 file changed, 2 deletions(-)
drivers/watchdog/geodewdt.c +0 -2
@@ -150,8 +150,6 @@ static long geodewdt_ioctl(struct file *file, unsigned int cmd,case WDIOC_GETSUPPORT :return copy_to_user (argp, &ident,sizeof (ident)) ? -EFAULT :0 ; -break ; -case WDIOC_GETSTATUS :case WDIOC_GETBOOTSTATUS :return put_user (0 , p);
Signature · 1 line
2.18.1
Quoted 5 lines · On Mon, Oct 19, 2020 at 10:53:42AM -0700, [email protected] wrote:
From: Tom Rix <[email protected]>
A break is not needed if it is preceded by a return
Signed-off-by Tom Rix <[email protected]>
Reviewed-by Guenter Roeck <[email protected]>
Quoted 20 lines
--- drivers/watchdog/geodewdt.c | 2 -- 1 file changed, 2 deletions(-)drivers/watchdog/geodewdt.c +0
-2@@ -150,8 +150,6 @@ static long geodewdt_ioctl(struct file *file, unsigned int cmd,case WDIOC_GETSUPPORT :return copy_to_user (argp, &ident,sizeof (ident)) ? -EFAULT :0 ; -break ; -case WDIOC_GETSTATUS :case WDIOC_GETBOOTSTATUS :return put_user (0 , p);Signature · 1 line
2.18.1