turnip: Remove pipeline NULL check.
authorVinson Lee <vlee@freedesktop.org>
Tue, 10 Nov 2020 02:02:21 +0000 (18:02 -0800)
committerVinson Lee <vlee@freedesktop.org>
Tue, 10 Nov 2020 02:02:21 +0000 (18:02 -0800)
commit7004548bdf28f47fcc0d2fc1c96457f1a15bc4f1
tree6bff53dc6439af86bbb6b8dcce731aa93045bbf5
parentf8844d5c729dbc73e63f75f1c7181c7227a75189
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>
src/freedreno/vulkan/tu_pipeline.c