[Debian-ha-commits] [ocfs2-tools] 24/58: fsck.ocfs2: clean up useless assignment in dup_insert()

Valentin Vidic vvidic-guest at moszumanska.debian.org
Tue Jun 20 13:40:41 UTC 2017


This is an automated email from the git hooks/post-receive script.

vvidic-guest pushed a commit to branch upstream
in repository ocfs2-tools.

commit 502d2efcb9d234f93dfdaa65f57f0a9b8cf6666c
Author: piaojun <piaojun at huawei.com>
Date:   Tue Sep 20 21:23:39 2016 +0800

    fsck.ocfs2: clean up useless assignment in dup_insert()
    
    No need to assign for 'di' and 'dco' in dup_insert().
    
    Signed-off-by: Jun Piao <piaojun at huawei.com>
    Reviewed-by: Eric Ren <zren at suse.com>
    Reviewed-by: Joseph Qi <joseph.qi at huawei.com>
---
 fsck.ocfs2/pass1b.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/fsck.ocfs2/pass1b.c b/fsck.ocfs2/pass1b.c
index fc380ec..6edda58 100644
--- a/fsck.ocfs2/pass1b.c
+++ b/fsck.ocfs2/pass1b.c
@@ -299,7 +299,6 @@ static errcode_t dup_insert(struct dup_context *dct, uint32_t cluster,
 	di = dup_inode_lookup(dct, dinode->i_blkno);
 	if (!di) {
 		dup_inode_insert(dct, new_di);
-		di = new_di;
 		new_di = NULL;
 	}
 
@@ -312,7 +311,6 @@ static errcode_t dup_insert(struct dup_context *dct, uint32_t cluster,
 	}
 	if (!dco) {
 		list_add_tail(&new_dco->dco_list, &dc->dc_owners);
-		dco = new_dco;
 		new_dco = NULL;
 	}
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-ha/ocfs2-tools.git



More information about the Debian-HA-Commits mailing list