unpack-trees: avoid dead store for struct progress
authorCarlo Marcelo Arenas Belón <carenas@gmail.com>
Thu, 18 Oct 2018 18:46:04 +0000 (11:46 -0700)
committerJunio C Hamano <gitster@pobox.com>
Fri, 19 Oct 2018 02:16:52 +0000 (11:16 +0900)
it is unconditionally initialized a few lines below

Signed-off-by: Carlo Marcelo Arenas Belón <carenas@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
unpack-trees.c
index 51bfac6aa0bea246cdf6415490654b7ca2e4b9c2..7570df481bf69824e4b163a6c7a15985b72d1326 100644 (file)
@@ -380,7 +380,7 @@ static int check_updates(struct unpack_trees_options *o)
 {
        unsigned cnt = 0;
        int errs = 0;
-       struct progress *progress = NULL;
+       struct progress *progress;
        struct index_state *index = &o->result;
        struct checkout state = CHECKOUT_INIT;
        int i;