summaryrefslogtreecommitdiffstats
path: root/fs/ocfs2/cluster
diff options
context:
space:
mode:
authorwangyan2018-08-18 00:44:27 +0200
committerLinus Torvalds2018-08-18 01:20:27 +0200
commit229ba1f82abe4c942e2ab5862daafdfe471fedd8 (patch)
tree7ceb2a8127b4c7327f80cdce47a914854f775cf7 /fs/ocfs2/cluster
parentocfs2: return -EROFS when filesystem becomes read-only (diff)
downloadkernel-qcow2-linux-229ba1f82abe4c942e2ab5862daafdfe471fedd8.tar.gz
kernel-qcow2-linux-229ba1f82abe4c942e2ab5862daafdfe471fedd8.tar.xz
kernel-qcow2-linux-229ba1f82abe4c942e2ab5862daafdfe471fedd8.zip
ocfs2: clean up some unnecessary code
Several functions have some unnecessary code, clean up these code. Link: http://lkml.kernel.org/r/5B14DF72.5020800@huawei.com Signed-off-by: Yan Wang <wangyan122@huawei.com> Reviewed-by: Jun Piao <piaojun@huawei.com> Reviewed-by: Andrew Morton <akpm@linux-foundation.org> Cc: Mark Fasheh <mark@fasheh.com> Cc: Joel Becker <jlbec@evilplan.org> Cc: Junxiao Bi <junxiao.bi@oracle.com> Cc: Joseph Qi <jiangqi903@gmail.com> Cc: Changwei Ge <ge.changwei@h3c.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/ocfs2/cluster')
-rw-r--r--fs/ocfs2/cluster/tcp.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/ocfs2/cluster/tcp.c b/fs/ocfs2/cluster/tcp.c
index 1296f78ae966..7d9eea7d4a87 100644
--- a/fs/ocfs2/cluster/tcp.c
+++ b/fs/ocfs2/cluster/tcp.c
@@ -872,8 +872,6 @@ int o2net_register_handler(u32 msg_type, u32 key, u32 max_len,
"for type %u key %08x\n", msg_type, key);
}
write_unlock(&o2net_handler_lock);
- if (ret)
- goto out;
out:
if (ret)