From: Erwan Velu Date: Tue, 12 Jan 2016 10:33:52 +0000 (+0100) Subject: os/filestore/FileJournal: Removing dead code X-Git-Tag: v10.0.4~158^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=6a23b23c0b9ae483197e1d5092831c8b2a6bb593;p=ceph.git os/filestore/FileJournal: Removing dead code Despite read_pos & last_committed_seq, the seq variable is local and created a few lines before. While the reinitiliasation of read_pos & last_commited_seq is useless, the seq variable is destroyed by the return call. That makes the "seq = 0" being useless and a dead code. This patch simply removes it. Signed-off-by: Erwan Velu --- diff --git a/src/os/filestore/FileJournal.cc b/src/os/filestore/FileJournal.cc index fa4751bf66e..e331594446a 100644 --- a/src/os/filestore/FileJournal.cc +++ b/src/os/filestore/FileJournal.cc @@ -540,7 +540,6 @@ int FileJournal::open(uint64_t fs_op_seq) << dendl; read_pos = -1; last_committed_seq = 0; - seq = 0; return 0; } if (seq == next_seq) {