From ab44f4ef802595edc6d675bdd2fbd8bed9c5375e Mon Sep 17 00:00:00 2001 From: Juan RP Date: Tue, 18 Jun 2019 17:11:27 +0200 Subject: [PATCH] lib/portableproplib/rb.c: fix dead initialization. Found by clang analyzer. Bug Summary File: lib/portableproplib/rb.c Warning: line 363, column 19 Value stored to 'grandpa' during its initialization is never read --- lib/portableproplib/rb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/portableproplib/rb.c b/lib/portableproplib/rb.c index 02216788..718ad155 100644 --- a/lib/portableproplib/rb.c +++ b/lib/portableproplib/rb.c @@ -360,7 +360,7 @@ static void rb_tree_insert_rebalance(struct rb_tree *rbt, struct rb_node *self) { struct rb_node * father = RB_FATHER(self); - struct rb_node * grandpa = RB_FATHER(father); + struct rb_node * grandpa; struct rb_node * uncle; unsigned int which; unsigned int other;