Mesa (master): freedreno/a6xx: Remove extra parens

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Mon Mar 11 18:39:32 UTC 2019


Module: Mesa
Branch: master
Commit: 5f0a922c277639abfd03c27c160b327a7889162b
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=5f0a922c277639abfd03c27c160b327a7889162b

Author: Kristian H. Kristensen <hoegsberg at chromium.org>
Date:   Fri Mar  1 14:33:36 2019 -0800

freedreno/a6xx: Remove extra parens

There's a warning about this now.

Signed-off-by: Kristian H. Kristensen <hoegsberg at chromium.org>

---

 src/gallium/drivers/freedreno/a6xx/fd6_format.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gallium/drivers/freedreno/a6xx/fd6_format.c b/src/gallium/drivers/freedreno/a6xx/fd6_format.c
index 5ba641d50a5..9448ff18e54 100644
--- a/src/gallium/drivers/freedreno/a6xx/fd6_format.c
+++ b/src/gallium/drivers/freedreno/a6xx/fd6_format.c
@@ -448,7 +448,7 @@ fd6_tex_swiz(enum pipe_format format, unsigned char *swiz,
 	/* Gallium expects stencil sampler to return (s,s,s,s), so massage
 	 * the swizzle to do so.
 	 */
-	if ((format == PIPE_FORMAT_X24S8_UINT)) {
+	if (format == PIPE_FORMAT_X24S8_UINT) {
 		const unsigned char stencil_swiz[4] = {
 			PIPE_SWIZZLE_X, PIPE_SWIZZLE_X, PIPE_SWIZZLE_X, PIPE_SWIZZLE_X
 		};




More information about the mesa-commit mailing list