Mesa (master): cso: remove unreachable break statements

Brian Paul brianp at kemper.freedesktop.org
Fri Aug 3 13:43:26 UTC 2012


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

Author: Brian Paul <brianp at vmware.com>
Date:   Thu Aug  2 16:30:10 2012 -0600

cso: remove unreachable break statements

---

 src/gallium/auxiliary/cso_cache/cso_context.c |    5 -----
 1 files changed, 0 insertions(+), 5 deletions(-)

diff --git a/src/gallium/auxiliary/cso_cache/cso_context.c b/src/gallium/auxiliary/cso_cache/cso_context.c
index 7db1e41..b592c4f 100644
--- a/src/gallium/auxiliary/cso_cache/cso_context.c
+++ b/src/gallium/auxiliary/cso_cache/cso_context.c
@@ -189,19 +189,14 @@ static INLINE boolean delete_cso(struct cso_context *ctx,
    switch (type) {
    case CSO_BLEND:
       return delete_blend_state(ctx, state);
-      break;
    case CSO_SAMPLER:
       return delete_sampler_state(ctx, state);
-      break;
    case CSO_DEPTH_STENCIL_ALPHA:
       return delete_depth_stencil_state(ctx, state);
-      break;
    case CSO_RASTERIZER:
       return delete_rasterizer_state(ctx, state);
-      break;
    case CSO_VELEMENTS:
       return delete_vertex_elements(ctx, state);
-      break;
    default:
       assert(0);
       FREE(state);




More information about the mesa-commit mailing list