r600g: Get rid of some superfluous braces.
authorHenri Verbeet <hverbeet@gmail.com>
Sat, 9 Jul 2011 15:19:00 +0000 (17:19 +0200)
committerHenri Verbeet <hverbeet@gmail.com>
Sat, 9 Jul 2011 16:12:50 +0000 (18:12 +0200)
Signed-off-by: Henri Verbeet <hverbeet@gmail.com>
src/gallium/drivers/r600/evergreen_state.c
src/gallium/drivers/r600/r600_state.c

index 97f10ce77b90c4bc117b4f8f25571955c8a6053c..fbf25feaf20176f5ba3455706fbd5fedb4e2e065 100644 (file)
@@ -510,11 +510,11 @@ static uint32_t r600_colorformat_endian_swap(uint32_t colorformat)
        if (R600_BIG_ENDIAN) {
                switch(colorformat) {
                case V_028C70_COLOR_4_4:
-                       return(ENDIAN_NONE);
+                       return ENDIAN_NONE;
 
                /* 8-bit buffers. */
                case V_028C70_COLOR_8:
-                       return(ENDIAN_NONE);
+                       return ENDIAN_NONE;
 
                /* 16-bit buffers. */
                case V_028C70_COLOR_5_6_5:
@@ -522,7 +522,7 @@ static uint32_t r600_colorformat_endian_swap(uint32_t colorformat)
                case V_028C70_COLOR_4_4_4_4:
                case V_028C70_COLOR_16:
                case V_028C70_COLOR_8_8:
-                       return(ENDIAN_8IN16);
+                       return ENDIAN_8IN16;
 
                /* 32-bit buffers. */
                case V_028C70_COLOR_8_8_8_8:
@@ -532,23 +532,23 @@ static uint32_t r600_colorformat_endian_swap(uint32_t colorformat)
                case V_028C70_COLOR_32_FLOAT:
                case V_028C70_COLOR_16_16_FLOAT:
                case V_028C70_COLOR_16_16:
-                       return(ENDIAN_8IN32);
+                       return ENDIAN_8IN32;
 
                /* 64-bit buffers. */
                case V_028C70_COLOR_16_16_16_16:
                case V_028C70_COLOR_16_16_16_16_FLOAT:
-                       return(ENDIAN_8IN16);
+                       return ENDIAN_8IN16;
 
                case V_028C70_COLOR_32_32_FLOAT:
                case V_028C70_COLOR_32_32:
-                       return(ENDIAN_8IN32);
+                       return ENDIAN_8IN32;
 
                /* 96-bit buffers. */
                case V_028C70_COLOR_32_32_32_FLOAT:
                /* 128-bit buffers. */
                case V_028C70_COLOR_32_32_32_32_FLOAT:
                case V_028C70_COLOR_32_32_32_32:
-                       return(ENDIAN_8IN32);
+                       return ENDIAN_8IN32;
                default:
                        return ENDIAN_NONE; /* Unsupported. */
                }
index 8a684e63c01c8a35584ebff80671a99a751f5de3..203b39f855f88b3cab5120159d03a5cc4312c015 100644 (file)
@@ -501,11 +501,11 @@ static uint32_t r600_colorformat_endian_swap(uint32_t colorformat)
        if (R600_BIG_ENDIAN) {
                switch(colorformat) {
                case V_0280A0_COLOR_4_4:
-                       return(ENDIAN_NONE);
+                       return ENDIAN_NONE;
 
                /* 8-bit buffers. */
                case V_0280A0_COLOR_8:
-                       return(ENDIAN_NONE);
+                       return ENDIAN_NONE;
 
                /* 16-bit buffers. */
                case V_0280A0_COLOR_5_6_5:
@@ -513,7 +513,7 @@ static uint32_t r600_colorformat_endian_swap(uint32_t colorformat)
                case V_0280A0_COLOR_4_4_4_4:
                case V_0280A0_COLOR_16:
                case V_0280A0_COLOR_8_8:
-                       return(ENDIAN_8IN16);
+                       return ENDIAN_8IN16;
 
                /* 32-bit buffers. */
                case V_0280A0_COLOR_8_8_8_8:
@@ -523,22 +523,22 @@ static uint32_t r600_colorformat_endian_swap(uint32_t colorformat)
                case V_0280A0_COLOR_32_FLOAT:
                case V_0280A0_COLOR_16_16_FLOAT:
                case V_0280A0_COLOR_16_16:
-                       return(ENDIAN_8IN32);
+                       return ENDIAN_8IN32;
 
                /* 64-bit buffers. */
                case V_0280A0_COLOR_16_16_16_16:
                case V_0280A0_COLOR_16_16_16_16_FLOAT:
-                       return(ENDIAN_8IN16);
+                       return ENDIAN_8IN16;
 
                case V_0280A0_COLOR_32_32_FLOAT:
                case V_0280A0_COLOR_32_32:
-                       return(ENDIAN_8IN32);
+                       return ENDIAN_8IN32;
 
                /* 128-bit buffers. */
                case V_0280A0_COLOR_32_32_32_FLOAT:
                case V_0280A0_COLOR_32_32_32_32_FLOAT:
                case V_0280A0_COLOR_32_32_32_32:
-                       return(ENDIAN_8IN32);
+                       return ENDIAN_8IN32;
                default:
                        return ENDIAN_NONE; /* Unsupported. */
                }