turnip: Remove unsigned nonnegative check.

index is of type uint32_t.

Fix defect reported by Coverity Scan.

Macro compares unsigned to 0 (NO_EFFECT)
unsigned_compare: This greater-than-or-equal-to-zero comparison of
an unsigned value is always true. index >= 0U.

Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8231>
This commit is contained in:
Vinson Lee 2020-12-24 13:59:36 -08:00 committed by Marge Bot
parent 512ca3464d
commit 7d8d99ea12

View file

@ -202,8 +202,6 @@ perfcntr_index(const struct fd_perfcntr_group *group, uint32_t group_count,
break;
}
index -= group[i].num_countables;
assert(index >= 0);
}
assert(i < group_count);