revision.c: remove unneeded check for NULL

The function is called only from one place, which makes sure to have `interesting_cache` not NULL. Additionally the variable is a dereferenced a few lines before unconditionally, which would have resulted in a segmentation fault before hitting this check. Signed-off-by: Stefan Beller <sbeller@google.com> Acked-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Stefan Beller committed Jun 26, 2015 at 12:40 UTC ae40ebda9bf68b0be8deafd93b7982d443f2b1b2
1 file changed +2 -2
revision.c
+2 -2
@@ -350,8 +350,8 @@ static int everybody_uninteresting(struct commit_list *orig,
350 list = list->next;
351 if (commit->object.flags & UNINTERESTING)
352 continue;
353 - if (interesting_cache)
354 - *interesting_cache = commit;
353 +
354 + *interesting_cache = commit;
355 return 0;
356 }
357 return 1;