Skip to content

Commit 793d37c

Browse files
sorganovgitster
authored andcommitted
log_tree_diff: get rid of extra check for NULL
Get rid of needless check of 'parents' for NULL. The NULL case is already handled right above, and 'parents' is dereferenced without check below anyway. Signed-off-by: Sergey Organov <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent a7b9430 commit 793d37c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

log-tree.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -917,7 +917,7 @@ static int log_tree_diff(struct rev_info *opt, struct commit *commit, struct log
917917
}
918918

919919
/* More than one parent? */
920-
if (parents && parents->next) {
920+
if (parents->next) {
921921
if (opt->ignore_merges)
922922
return 0;
923923
else if (opt->combine_merges)

0 commit comments

Comments
 (0)