gallium: Remove unnecessary semicolons
authorEdward O'Callaghan <eocallaghan@alterapraxis.com>
Tue, 5 Jan 2016 10:07:18 +0000 (21:07 +1100)
committerBrian Paul <brianp@vmware.com>
Wed, 6 Jan 2016 15:04:03 +0000 (08:04 -0700)
Fix silly issue with MSVC case fall-though support to need
a extra 'break;'

Found-by: Coccinelle
Signed-off-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/gallium/auxiliary/draw/draw_pipe_aaline.c
src/gallium/auxiliary/gallivm/lp_bld_swizzle.c
src/gallium/auxiliary/nir/tgsi_to_nir.c
src/gallium/auxiliary/util/u_surface.c
src/gallium/auxiliary/vl/vl_mpeg12_decoder.c
src/gallium/state_trackers/nine/swapchain9.c
src/gallium/state_trackers/omx/entrypoint.c
src/gallium/state_trackers/vdpau/mixer.c

index 3ce550a3ae821fe1abe14538e9d3d853b5c3b09a..e85ae16c1df0758a67c234dcec92e8943bf9693e 100644 (file)
@@ -938,7 +938,7 @@ draw_aaline_prepare_outputs(struct draw_context *draw,
    const struct pipe_rasterizer_state *rast = draw->rasterizer;
 
    /* update vertex attrib info */
-   aaline->pos_slot = draw_current_shader_position_output(draw);;
+   aaline->pos_slot = draw_current_shader_position_output(draw);
 
    if (!rast->line_smooth)
       return;
index b1aef715e204f995dd711bb3a7ed482ffd493f3b..f5718389f33cc3442fc3e44084cd31341b894d28 100644 (file)
@@ -720,7 +720,7 @@ lp_build_transpose_aos_n(struct gallivm_state *gallivm,
 
       default:
          assert(0);
-   };
+   }
 }
 
 
index 94d992b00315ba6c3cdcf499ff6fab47dc43fbc9..7c577592f708690443c05886daa827ec627733b7 100644 (file)
@@ -1950,7 +1950,7 @@ tgsi_processor_to_shader_stage(unsigned processor)
    case TGSI_PROCESSOR_COMPUTE:   return MESA_SHADER_COMPUTE;
    default:
       unreachable("invalid TGSI processor");
-   };
+   }
 }
 
 struct nir_shader *
index 6aa44f9602a06471952ee698ff08a314b1d60440..c150d92b967c8aa26849825a40b52edd652589a6 100644 (file)
@@ -600,7 +600,8 @@ is_box_inside_resource(const struct pipe_resource *res,
       depth = res->array_size;
       assert(res->array_size % 6 == 0);
       break;
-   case PIPE_MAX_TEXTURE_TYPES:;
+   case PIPE_MAX_TEXTURE_TYPES:
+      break;
    }
 
    return box->x >= 0 &&
index f5bb3a0106fe293bbd57957a096f2307a8533ea8..b5c70451ce840ce3b18c8549baf6b2850e01b3b4 100644 (file)
@@ -792,7 +792,7 @@ vl_mpeg12_end_frame(struct pipe_video_codec *decoder,
       for (j = 0; j < VL_MAX_REF_FRAMES; ++j) {
          if (!ref_frames[j] || !ref_frames[j][i]) continue;
 
-         vb[2] = vl_vb_get_mv(&buf->vertex_stream, j);;
+         vb[2] = vl_vb_get_mv(&buf->vertex_stream, j);
          dec->context->set_vertex_buffers(dec->context, 0, 3, vb);
 
          vl_mc_render_ref(i ? &dec->mc_c : &dec->mc_y, &buf->mc[i], ref_frames[j][i]);
index 3f5be26fed706bc0dbed3eab2b6d8db738bd54ed..3b1a7a4493cd23a2453fdf4dba27a4db6625cbf1 100644 (file)
@@ -790,7 +790,7 @@ NineSwapChain9_Present( struct NineSwapChain9 *This,
         case D3DSWAPEFFECT_FLIP:
             UNTESTED(4);
         case D3DSWAPEFFECT_DISCARD:
-            /* rotate the queue */;
+            /* rotate the queue */
             pipe_resource_reference(&res, This->buffers[0]->base.resource);
             for (i = 1; i <= This->params.BackBufferCount; i++) {
                 NineSurface9_SetResourceResize(This->buffers[i - 1],
index da9ca104d93005ebe245cafbe16c3191bfd93767..afcbd974e76c858e0e8c65b27501f41beaa45123 100644 (file)
@@ -137,7 +137,7 @@ OMX_ERRORTYPE omx_workaround_Destructor(OMX_COMPONENTTYPE *comp)
    priv->state = OMX_StateInvalid;
    tsem_up(priv->messageSem);
 
-   /* wait for thread to exit */;
+   /* wait for thread to exit */
    pthread_join(priv->messageHandlerThread, NULL);
 
    return omx_base_component_Destructor(comp);
index c0b1ecc55fa02bdab7553dd80dde5c03a0cde28f..dec79ff95e23f7353216cfdf5662fc44e37a2b3e 100644 (file)
@@ -294,7 +294,7 @@ VdpStatus vlVdpVideoMixerRender(VdpVideoMixer mixer,
    default:
       pipe_mutex_unlock(vmixer->device->mutex);
       return VDP_STATUS_INVALID_VIDEO_MIXER_PICTURE_STRUCTURE;
-   };
+   }
 
    if (deinterlace != VL_COMPOSITOR_WEAVE && vmixer->deint.enabled &&
        video_surface_past_count > 1 && video_surface_future_count > 0) {