Skip to content

Commit

Permalink
diff.c: Do not initialize a variable, which gets reassigned anyway.
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Beller <stefanbeller@googlemail.com>
Reviewed-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Stefan Beller authored and Junio C Hamano committed Jul 15, 2013
1 parent 70a0cc9 commit d3c9cf3
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions diff.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit d3c9cf3

Please sign in to comment.