Merge branch 'mh/ref-races-optim-invalidate-cached'
[gitweb.git] / diff.c
diff --git a/diff.c b/diff.c
index a4583f01107c4534c1939ffcd5effcb959ea732e..4629de2092ee7eca1b6aadc892396acc8af46d48 100644 (file)
--- 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;