diff.c: Do not initialize a variable, which gets reassigned anyway.
Signed-off-by: Stefan Beller <stefanbeller@googlemail.com> Reviewed-by: Jonathan Nieder <jrnieder@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Stefan Beller committed
Jul 14, 2013 at 23:35 UTC
d3c9cf32ca3b088fda54e7be311860f1f06fb11e
1 file changed
+1
-3
diff.c
+1
-3
@@ -1683,9 +1683,7 @@ static void show_stats(struct diffstat_t *data, struct diff_options *options)
1683
del = deleted;
1684
1685
if (graph_width <= max_change) {
1686
- int total = add + del;
1687
-
1688
- total = scale_linear(add + del, graph_width, max_change);
1686
+ int total = scale_linear(add + del, graph_width, max_change);
1687
if (total < 2 && add && del)
1688
/* width >= 2 due to the sanity check */
1689
total = 2;