From 331766b9a20bdde5e10adfb0443477e5c43a14dd Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Thu, 11 Apr 2013 10:06:06 -0700 Subject: [PATCH] i830: Move assert-only code into the assert. The call has no side effects, and moving it into the assert cleans up a compile warning in the release build. Reviewed-by: Matt Turner --- src/mesa/drivers/dri/i915/i830_vtbl.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/mesa/drivers/dri/i915/i830_vtbl.c b/src/mesa/drivers/dri/i915/i830_vtbl.c index 6019852bf6c..b30f45edfa8 100644 --- a/src/mesa/drivers/dri/i915/i830_vtbl.c +++ b/src/mesa/drivers/dri/i915/i830_vtbl.c @@ -179,8 +179,6 @@ i830_render_start(struct intel_context *intel) v2 != i830->state.Ctx[I830_CTXREG_VF2] || mcsb1 != i830->state.Ctx[I830_CTXREG_MCSB1] || index_bitset != i830->last_index_bitset) { - int k; - I830_STATECHANGE(i830, I830_UPLOAD_CTX); /* Must do this *after* statechange, so as not to affect @@ -199,8 +197,7 @@ i830_render_start(struct intel_context *intel) i830->state.Ctx[I830_CTXREG_MCSB1] = mcsb1; i830->last_index_bitset = index_bitset; - k = i830_check_vertex_size(intel, intel->vertex_size); - assert(k); + assert(i830_check_vertex_size(intel, intel->vertex_size)); } } -- 2.30.2