etnaviv: remove superfluous braces
authorLucas Stach <l.stach@pengutronix.de>
Fri, 14 Jul 2023 16:53:57 +0000 (18:53 +0200)
committerMarge Bot <emma+marge@anholt.net>
Mon, 17 Jul 2023 09:27:13 +0000 (09:27 +0000)
etnaviv gernerally uses the style where no braces are used if the
statement inside a conditional clause fits on a single line. Remove
some superfluous braces to be more consistent.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Reviewed-by: Christian Gmeiner <cgmeiner@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24164>

src/gallium/drivers/etnaviv/etnaviv_transfer.c

index 2d0054e6eb70aa132aa6b889983d1becad3dec01..1f19140788eb4ad335d5a49f3c75f04bca54022a 100644 (file)
@@ -174,9 +174,8 @@ etna_transfer_unmap(struct pipe_context *pctx, struct pipe_transfer *ptrans)
       etna_resource_level_ts_mark_invalid(res_level);
       etna_resource_level_mark_changed(res_level);
 
-      if (rsc->base.bind & PIPE_BIND_SAMPLER_VIEW) {
+      if (rsc->base.bind & PIPE_BIND_SAMPLER_VIEW)
          ctx->dirty |= ETNA_DIRTY_TEXTURE_CACHES;
-      }
    }
 
    /* We need to have the patched data ready for the GPU. */