broadcom/qpu: Remove duplicate variable opcode
authorVinson Lee <vlee@freedesktop.org>
Sun, 15 Oct 2023 04:39:54 +0000 (21:39 -0700)
committerMarge Bot <emma+marge@anholt.net>
Tue, 17 Oct 2023 12:31:33 +0000 (12:31 +0000)
commit5612f9a7042841cc0fab111dfd20bceed5e690b7
tree03db353c2c729bbc717df7bbcbd2bdf9955876d1
parentb20760899571c59698155c283f198e772c8e1e6a
broadcom/qpu: Remove duplicate variable opcode

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>
src/broadcom/qpu/qpu_pack.c