summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuan A. Suarez Romero <jasuarez@igalia.com>2021-03-30 10:57:15 +0200
committerMarge Bot <eric+marge@anholt.net>2021-03-30 14:15:43 +0000
commitcc1f070a27d78d9735f471714607a16e40f78cff (patch)
tree8f8e244ef7aa4f2aa8e0cd755ac849ced172b945
parentd03a9fa50c60b1bdbd905c577d0209d72fcdb017 (diff)
broadcom/compiler: fix unused value
Do not assign to a variable that won't be used. Fixes CID#1451708 and CID#1451710 "Unused value (UNUSED_VALUE)". Reviewed-by: Iago Toral Quiroga <itoral@igalia.com> Signed-off-by: Juan A. Suarez Romero <jasuarez@igalia.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9910>
-rw-r--r--src/broadcom/compiler/nir_to_vir.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/broadcom/compiler/nir_to_vir.c b/src/broadcom/compiler/nir_to_vir.c
index cd806bfc5b4..44a326f606c 100644
--- a/src/broadcom/compiler/nir_to_vir.c
+++ b/src/broadcom/compiler/nir_to_vir.c
@@ -1599,7 +1599,7 @@ vir_emit_tlb_color_write(struct v3d_compile *c, unsigned rt)
QUNIFORM_CONSTANT,
conf);
} else {
- inst = vir_MOV_dest(c, tlb_reg, r);
+ vir_MOV_dest(c, tlb_reg, r);
}
if (num_components >= 2)
@@ -1619,7 +1619,7 @@ vir_emit_tlb_color_write(struct v3d_compile *c, unsigned rt)
}
if (num_components >= 3)
- inst = vir_VFPACK_dest(c, tlb_reg, b, a);
+ vir_VFPACK_dest(c, tlb_reg, b, a);
}
}
}