OSDN Git Service

fs/ocfs2/cluster/tcp.c: remove unneeded break
authorTom Rix <trix@redhat.com>
Tue, 15 Dec 2020 03:03:37 +0000 (19:03 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 15 Dec 2020 20:13:37 +0000 (12:13 -0800)
A break is not needed if it is preceded by a goto

Link: https://lkml.kernel.org/r/20201019175216.2329-1-trix@redhat.com
Signed-off-by: Tom Rix <trix@redhat.com>
Acked-by: Joseph Qi <joseph.qi@linux.alibaba.com>
Cc: Mark Fasheh <mark@fasheh.com>
Cc: Joel Becker <jlbec@evilplan.org>
Cc: Junxiao Bi <junxiao.bi@oracle.com>
Cc: Changwei Ge <gechangwei@live.cn>
Cc: Gang He <ghe@suse.com>
Cc: Jun Piao <piaojun@huawei.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/ocfs2/cluster/tcp.c

index 79a2317..3bd8119 100644 (file)
@@ -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 */