commit | 198a4404b937033cf2cf2b054242df4e81ef3075 | [log] [tgz] |
---|---|---|
author | John Keeping <john@keeping.me.uk> | Thu Oct 08 23:23:59 2015 +0100 |
committer | Jason A. Donenfeld <Jason@zx2c4.com> | Fri Oct 09 10:54:48 2015 +0200 |
tree | ec3ffd49f759af1d01c331e36456056f39032acc | |
parent | 509488d85c06c66eb65bc4809f6e317c1ebe1d7a [diff] |
ui-refs: remove useless null check There is no way that "tag" can be null here. Coverity-id: 13950 Signed-off-by: John Keeping <john@keeping.me.uk>
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 @@ tag = (struct tag *)obj; obj = tag->tagged; info = ref->tag; - if (!tag || !info) + if (!info) return 1; }