v3d: remove intermediate variable
Static analyzer is complaining that value stored to `v3d` during its initialization is never read. But the variable is used just below in a loop, so it is not clear if this is just a false positive. In any case, having this intermediate variable provides nothing, specially when it is used only in a single place. So rather remove it and use the full variable. Reviewed-by: Alejandro Piñeiro <apinheiro@igalia.com> Signed-off-by: Juan A. Suarez Romero <jasuarez@igalia.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32772>
This commit is contained in:
committed by
Marge Bot
parent
78880603c6
commit
f13f0e1f77
@@ -181,10 +181,9 @@ emit_varying_flags(struct v3d_job *job, uint32_t *flags,
|
||||
enum V3DX(Varying_Flags_Action) lower,
|
||||
enum V3DX(Varying_Flags_Action) higher))
|
||||
{
|
||||
struct v3d_context *v3d = job->v3d;
|
||||
bool emitted_any = false;
|
||||
|
||||
for (int i = 0; i < ARRAY_SIZE(v3d->prog.fs->prog_data.fs->flat_shade_flags); i++) {
|
||||
for (int i = 0; i < ARRAY_SIZE(job->v3d->prog.fs->prog_data.fs->flat_shade_flags); i++) {
|
||||
if (!flags[i])
|
||||
continue;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user