summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2015-07-17 19:44:56 +0200
committerJunio C Hamano <gitster@pobox.com>2015-07-17 19:44:56 +0200
commitfbdeabf1f0992e41237caee8fc357849e0038a82 (patch)
treea074591c4eae7925568ad5d65926887b6b7a0752
parentMerge branch 'es/worktree-add' (diff)
parentrevision.c: remove unneeded check for NULL (diff)
downloadgit-fbdeabf1f0992e41237caee8fc357849e0038a82.tar.xz
git-fbdeabf1f0992e41237caee8fc357849e0038a82.zip
Merge branch 'jk/still-interesting'
Code clean-up. * jk/still-interesting: revision.c: remove unneeded check for NULL
-rw-r--r--revision.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/revision.c b/revision.c
index 3ff8723da4..ab97ffd459 100644
--- a/revision.c
+++ b/revision.c
@@ -361,8 +361,8 @@ static int everybody_uninteresting(struct commit_list *orig,
list = list->next;
if (commit->object.flags & UNINTERESTING)
continue;
- if (interesting_cache)
- *interesting_cache = commit;
+
+ *interesting_cache = commit;
return 0;
}
return 1;