From 5e4ae3466b21490c5db8e9d3c112d6c9efb4716e Mon Sep 17 00:00:00 2001 From: Erik Faye-Lund Date: Wed, 3 Feb 2021 17:11:56 +0100 Subject: [PATCH] zink: drop extra set of parens We don't need to be doubly sure here, we can just use a single set of parents instead. Reviewed-By: Mike Blumenkrantz Part-of: --- src/gallium/drivers/zink/zink_resource.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/zink/zink_resource.c b/src/gallium/drivers/zink/zink_resource.c index 187ea4116ab..a72445bd4e9 100644 --- a/src/gallium/drivers/zink/zink_resource.c +++ b/src/gallium/drivers/zink/zink_resource.c @@ -589,7 +589,7 @@ zink_transfer_map(struct pipe_context *pctx, trans->base.layer_stride = 0; ptr = ((uint8_t *)ptr) + box->x; } else { - if (res->optimal_tiling || ((res->base.usage != PIPE_USAGE_STAGING))) { + if (res->optimal_tiling || (res->base.usage != PIPE_USAGE_STAGING)) { enum pipe_format format = pres->format; if (usage & PIPE_MAP_DEPTH_ONLY) format = util_format_get_depth_only(pres->format);