diff options
author | John Keeping <john@keeping.me.uk> | 2015-10-09 01:23:59 +0300 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2015-10-09 11:54:48 +0300 |
commit | 198a4404b937033cf2cf2b054242df4e81ef3075 (patch) | |
tree | ec3ffd49f759af1d01c331e36456056f39032acc /ui-refs.c | |
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>
Diffstat (limited to 'ui-refs.c')
-rw-r--r-- | ui-refs.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; } |