aboutsummaryrefslogtreecommitdiffstats
path: root/ui-refs.c
diff options
context:
space:
mode:
authorJohn Keeping2015-10-08 23:23:59 +0100
committerJason A. Donenfeld2015-10-09 10:54:48 +0200
commit198a4404b937033cf2cf2b054242df4e81ef3075 (patch)
treeec3ffd49f759af1d01c331e36456056f39032acc /ui-refs.c
parent509488d85c06c66eb65bc4809f6e317c1ebe1d7a (diff)
downloadcgit-198a4404b937033cf2cf2b054242df4e81ef3075.tar.gz
cgit-198a4404b937033cf2cf2b054242df4e81ef3075.tar.bz2
cgit-198a4404b937033cf2cf2b054242df4e81ef3075.zip
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.c2
1 files changed, 1 insertions, 1 deletions
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)
135 tag = (struct tag *)obj; 135 tag = (struct tag *)obj;
136 obj = tag->tagged; 136 obj = tag->tagged;
137 info = ref->tag; 137 info = ref->tag;
138 if (!tag || !info) 138 if (!info)
139 return 1; 139 return 1;
140 } 140 }
141 141