]> granicus.if.org Git - cgit/commitdiff
ui-refs: remove useless null check
authorJohn Keeping <john@keeping.me.uk>
Thu, 8 Oct 2015 22:23:59 +0000 (23:23 +0100)
committerJason A. Donenfeld <Jason@zx2c4.com>
Fri, 9 Oct 2015 08:54:48 +0000 (10:54 +0200)
There is no way that "tag" can be null here.

Coverity-id: 13950
Signed-off-by: John Keeping <john@keeping.me.uk>
ui-refs.c

index be3572cadd21b04e52f8356573be34f527363488..295a4c7b00923c1c2d31594ff8f737bad82ba4b6 100644 (file)
--- 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;
        }