ext_external_objects: Remove unnecessary NULL check.
commitfe6ab525a95869b6e66fd7deff7372ec184fb9f3
authorVinson Lee <vlee@freedesktop.org>
Fri, 29 Apr 2022 20:27:32 +0000 (29 13:27 -0700)
committerVinson Lee <vlee@freedesktop.org>
Wed, 11 May 2022 04:36:33 +0000 (10 21:36 -0700)
treec94ffdca7f317496b67cacdc8b2bd5f18fa77c82
parentafb00a56972b74de4b834092e5bb90ebe8ecff8f
ext_external_objects: Remove unnecessary NULL check.

Fix defect reported by Coverity Scan.

Dereference before null check (REVERSE_INULL)
check_after_deref: Null-checking attachments suggests that it may
be null, but it has already been dereferenced on all paths leading
to the check.

Fixes: 8713fbda2 ("ext_external_objects: Vulkan framework additions")
Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/piglit/-/merge_requests/660>
tests/spec/ext_external_objects/vk.c