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>
This commit is contained in:
Juan A. Suarez Romero 2021-03-30 10:57:15 +02:00 committed by Marge Bot
parent d03a9fa50c
commit cc1f070a27

View file

@ -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);
}
}
}