unpack-trees: avoid dead store for struct progress
PATCH 1/1 unpack-trees: avoid dead store for struct progress
it is unconditionally initialized a few lines below
Signed-off-by Carlo Marcelo Arenas Belón <[email protected]>
--- unpack-trees.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
unpack-trees.c +1 -1
@@ -340,7 +340,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;
Signature · 1 line
2.19.1