From: Carlo Marcelo Arenas Belón Date: Thu, 18 Oct 2018 18:46:04 +0000 (-0700) Subject: unpack-trees: avoid dead store for struct progress X-Git-Tag: v2.20.0-rc0~111^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=07f967adb55fd2285f9c916b32731968e557acc3;p=thirdparty%2Fgit.git unpack-trees: avoid dead store for struct progress it is unconditionally initialized a few lines below Signed-off-by: Carlo Marcelo Arenas Belón Signed-off-by: Junio C Hamano --- diff --git a/unpack-trees.c b/unpack-trees.c index 51bfac6aa0..7570df481b 100644 --- a/unpack-trees.c +++ b/unpack-trees.c @@ -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;