From d3c9cf32ca3b088fda54e7be311860f1f06fb11e Mon Sep 17 00:00:00 2001 From: Stefan Beller Date: Sun, 14 Jul 2013 23:35:49 +0200 Subject: [PATCH] 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.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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; -- 2.11.4.GIT