freedreno/a6xx: Remove extra parens
authorKristian H. Kristensen <hoegsberg@chromium.org>
Fri, 1 Mar 2019 22:33:36 +0000 (14:33 -0800)
committerKristian H. Kristensen <hoegsberg@chromium.org>
Mon, 11 Mar 2019 18:37:53 +0000 (11:37 -0700)
There's a warning about this now.

Signed-off-by: Kristian H. Kristensen <hoegsberg@chromium.org>
src/gallium/drivers/freedreno/a6xx/fd6_format.c

index 5ba641d50a55a9018a5a7d61d75257a7f4cade56..9448ff18e54329bf49df262bbf926fa25229fc06 100644 (file)
@@ -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
                };