Fix defect reported by Coverity Scan.
Evaluation order violation (EVALUATION_ORDER)
write_write_typo: In opcode = opcode = desc->opcode_first, opcode is
written twice with the same value.
Fixes: 3b20208f03f ("broadcom/qpu: add pack/unpack support for v71")
Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Alejandro PiƱeiro <apinheiro@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25735>
if (!desc)
return false;
- uint32_t opcode = opcode = desc->opcode_first;
+ uint32_t opcode = desc->opcode_first;
/* If an operation doesn't use an arg, its mux values may be used to
* identify the operation type.
if (!desc)
return false;
- uint32_t opcode = opcode = desc->opcode_first;
+ uint32_t opcode = desc->opcode_first;
/* If an operation doesn't use an arg, its raddr values may be used to
* identify the operation type.