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: https://git.lorimer.id.au/gitweb.git/diff_plain/d3c9cf32ca3b088fda54e7be311860f1f06fb11e?hp=--cc 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 --- d3c9cf32ca3b088fda54e7be311860f1f06fb11e 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;