From: Stefan Beller Date: Sun, 14 Jul 2013 21:35:49 +0000 (+0200) Subject: diff.c: Do not initialize a variable, which gets reassigned anyway. X-Git-Tag: v1.8.4-rc0~12^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d3c9cf32ca3b088fda54e7be311860f1f06fb11e;p=thirdparty%2Fgit.git diff.c: Do not initialize a variable, which gets reassigned anyway. Signed-off-by: Stefan Beller Reviewed-by: Jonathan Nieder Signed-off-by: Junio C Hamano --- diff --git a/diff.c b/diff.c index 649ec86b87..2747e6f72c 100644 --- a/diff.c +++ b/diff.c @@ -1683,9 +1683,7 @@ static void show_stats(struct diffstat_t *data, struct diff_options *options) del = deleted; if (graph_width <= max_change) { - int total = add + del; - - total = scale_linear(add + del, graph_width, max_change); + int total = scale_linear(add + del, graph_width, max_change); if (total < 2 && add && del) /* width >= 2 due to the sanity check */ total = 2;