From: Michihiro NAKAJIMA Date: Tue, 24 May 2011 11:25:16 +0000 (-0400) Subject: Remove unneeded assignment code found with Clang Static Analyzer. X-Git-Tag: v3.0.0a~304 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7ec8a39314c24a418497db1118cc295fa738c951;p=thirdparty%2Flibarchive.git Remove unneeded assignment code found with Clang Static Analyzer. SVN-Revision: 3383 --- diff --git a/libarchive/archive_rb.c b/libarchive/archive_rb.c index c6c260a2b..f8035d9df 100644 --- a/libarchive/archive_rb.c +++ b/libarchive/archive_rb.c @@ -272,7 +272,7 @@ __archive_rb_tree_insert_rebalance(struct archive_rb_tree *rbt, struct archive_rb_node *self) { struct archive_rb_node * father = RB_FATHER(self); - struct archive_rb_node * grandpa = RB_FATHER(father); + struct archive_rb_node * grandpa; struct archive_rb_node * uncle; unsigned int which; unsigned int other; @@ -327,8 +327,6 @@ __archive_rb_tree_insert_rebalance(struct archive_rb_tree *rbt, * child. */ __archive_rb_tree_reparent_nodes(father, other); - self = father; - father = RB_FATHER(self); } /* * Case 3: we are opposite a child of a black uncle.