From: Iago Toral Quiroga Date: Mon, 28 Oct 2019 09:29:15 +0000 (+0100) Subject: v3d: remove unused variable X-Git-Url: https://git.libre-soc.org/?p=mesa.git;a=commitdiff_plain;h=f63750accf99ff0f8503f7196399ad4e0e11befa v3d: remove unused variable Reviewed-by: Alejandro PiƱeiro --- diff --git a/src/broadcom/compiler/nir_to_vir.c b/src/broadcom/compiler/nir_to_vir.c index 6c079bda6af..6b566c68e07 100644 --- a/src/broadcom/compiler/nir_to_vir.c +++ b/src/broadcom/compiler/nir_to_vir.c @@ -1568,11 +1568,8 @@ static void ntq_setup_fs_inputs(struct v3d_compile *c) { unsigned num_entries = 0; - unsigned num_components = 0; - nir_foreach_variable(var, &c->s->inputs) { + nir_foreach_variable(var, &c->s->inputs) num_entries++; - num_components += glsl_get_components(var->type); - } nir_variable *vars[num_entries];