turnip: Remove pipeline NULL check.
pipeline cannot be NULL since pipeline->layout->num_sets was just checked. Fix defect reported by Coverity Scan. Dereference before null check (REVERSE_INULL) check_after_deref: Null-checking pipeline suggests that it may be null, but it has already been dereferenced on all paths leading to the check. Signed-off-by: Vinson Lee <vlee@freedesktop.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7521>
This commit is contained in:
parent
f8844d5c72
commit
7004548bdf
|
@ -68,7 +68,7 @@ tu6_load_state_size(struct tu_pipeline *pipeline, bool compute)
|
|||
const unsigned load_state_size = 4;
|
||||
unsigned size = 0;
|
||||
for (unsigned i = 0; i < pipeline->layout->num_sets; i++) {
|
||||
if (pipeline && !(pipeline->active_desc_sets & (1u << i)))
|
||||
if (!(pipeline->active_desc_sets & (1u << i)))
|
||||
continue;
|
||||
|
||||
struct tu_descriptor_set_layout *set_layout = pipeline->layout->set[i].layout;
|
||||
|
|
Loading…
Reference in New Issue