Skip to content

Commit d3c9cf3

Browse files
stefanbellergitster
authored andcommitted
diff.c: Do not initialize a variable, which gets reassigned anyway.
Signed-off-by: Stefan Beller <[email protected]> Reviewed-by: Jonathan Nieder <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 70a0cc9 commit d3c9cf3

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

diff.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1683,9 +1683,7 @@ static void show_stats(struct diffstat_t *data, struct diff_options *options)
16831683
del = deleted;
16841684

16851685
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);
16891687
if (total < 2 && add && del)
16901688
/* width >= 2 due to the sanity check */
16911689
total = 2;

0 commit comments

Comments
 (0)