From: John Keeping Date: Thu, 8 Oct 2015 22:23:59 +0000 (+0100) Subject: ui-refs: remove useless null check X-Git-Tag: v0.12~40 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=198a4404b937033cf2cf2b054242df4e81ef3075;p=cgit ui-refs: remove useless null check There is no way that "tag" can be null here. Coverity-id: 13950 Signed-off-by: John Keeping --- diff --git a/ui-refs.c b/ui-refs.c index be3572c..295a4c7 100644 --- a/ui-refs.c +++ b/ui-refs.c @@ -135,7 +135,7 @@ static int print_tag(struct refinfo *ref) tag = (struct tag *)obj; obj = tag->tagged; info = ref->tag; - if (!tag || !info) + if (!info) return 1; }