r600g/radeonsi: Remove default case from PIPE_COMPUTE_CAP_* switch
authorMichel Dänzer <michel.daenzer@amd.com>
Fri, 13 Jun 2014 03:23:33 +0000 (12:23 +0900)
committerMichel Dänzer <michel@daenzer.net>
Mon, 16 Jun 2014 06:56:29 +0000 (15:56 +0900)
This way, the compiler warns about unhandled caps.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/drivers/radeon/r600_pipe_common.c

index 1911cdef3de7b0335235d832c932c874004d80e9..46e8a7913fd97b2daf55aa5b2595e9c454680e1b 100644 (file)
@@ -526,11 +526,10 @@ static int r600_get_compute_param(struct pipe_screen *screen,
                        *max_compute_units = MAX2(rscreen->info.max_compute_units, 1);
                }
                return sizeof(uint32_t);
-
-       default:
-               fprintf(stderr, "unknown PIPE_COMPUTE_CAP %d\n", param);
-               return 0;
        }
+
+        fprintf(stderr, "unknown PIPE_COMPUTE_CAP %d\n", param);
+        return 0;
 }
 
 static uint64_t r600_get_timestamp(struct pipe_screen *screen)