[Ocfs2-devel] [PATCH] fs: ocfs2 remove unneeded break

Joseph Qi joseph.qi at linux.alibaba.com
Mon Oct 19 18:20:10 PDT 2020



On 2020/10/20 01:52, trix at redhat.com wrote:
> From: Tom Rix <trix at redhat.com>
> 
> A break is not needed if it is preceded by a goto
> 
> Signed-off-by: Tom Rix <trix at redhat.com>

Acked-by: Joseph Qi <joseph.qi at linux.alibaba.com>
> ---
>  fs/ocfs2/cluster/tcp.c | 1 -
>  1 file changed, 1 deletion(-)
> 
> diff --git a/fs/ocfs2/cluster/tcp.c b/fs/ocfs2/cluster/tcp.c
> index 79a231719460..3bd8119bed5e 100644
> --- a/fs/ocfs2/cluster/tcp.c
> +++ b/fs/ocfs2/cluster/tcp.c
> @@ -1198,7 +1198,6 @@ static int o2net_process_message(struct o2net_sock_container *sc,
>  			msglog(hdr, "bad magic\n");
>  			ret = -EINVAL;
>  			goto out;
> -			break;
>  	}
>  
>  	/* find a handler for it */
> 



More information about the Ocfs2-devel mailing list