v3dv: Fix assert using assign instead of compare.

Fix defect reported by Coverity Scan.

Assign instead of compare (PW.ASSIGN_WHERE_COMPARE_MEANT)
assign_where_compare_meant: use of "=" where "==" may have been intended

Fixes: ca86c7c65a ("v3dv: assert command buffers are executable when submitting to a queue")
Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Alejandro Piñeiro <apinheiro@igalia.com>
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7156>
This commit is contained in:
Vinson Lee
2020-10-14 17:20:14 -07:00
committed by Marge Bot
parent e7ce74497e
commit f5841c343b
+1 -1
View File
@@ -834,7 +834,7 @@ queue_submit_cmd_buffer(struct v3dv_queue *queue,
pthread_t *wait_thread)
{
assert(cmd_buffer);
assert(cmd_buffer->status = V3DV_CMD_BUFFER_STATUS_EXECUTABLE);
assert(cmd_buffer->status == V3DV_CMD_BUFFER_STATUS_EXECUTABLE);
if (list_is_empty(&cmd_buffer->jobs))
return queue_submit_noop_job(queue, pSubmit);