From d3a795b5284f6514844f3c62412f81a5d3b2b733 Mon Sep 17 00:00:00 2001 From: Erik Faye-Lund Date: Thu, 26 Aug 2021 11:27:33 +0200 Subject: [PATCH] zink: remove needless NULL-check This NULL-check makes Coverity paranoid because we just dereferenced the pointer a few lines above. But we never call this function with a NULL-pointer here, so the NULL check isn't needed. Let's just remove it, to calm Coverity down a bit. Reviewed-By: Mike Blumenkrantz Part-of: --- src/gallium/drivers/zink/zink_fence.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/gallium/drivers/zink/zink_fence.c b/src/gallium/drivers/zink/zink_fence.c index 8b151480874..931d88f8f36 100644 --- a/src/gallium/drivers/zink/zink_fence.c +++ b/src/gallium/drivers/zink/zink_fence.c @@ -100,9 +100,6 @@ tc_fence_finish(struct zink_context *ctx, struct zink_tc_fence *mfence, uint64_t threaded_context_flush(&ctx->base, mfence->tc_token, *timeout_ns == 0); } - if (!timeout_ns) - return false; - /* this is a tc mfence, so we're just waiting on the queue mfence to complete * after being signaled by the real mfence */