From: Matt Turner Date: Sat, 11 Apr 2015 16:54:38 +0000 (-0700) Subject: i965: Remove useless null check. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ea0c35faf88962e049c0a67ce714e03933383be1;p=mesa.git i965: Remove useless null check. If it were null, we'd have just derefernced it two lines above. --- diff --git a/src/mesa/drivers/dri/i965/brw_context.c b/src/mesa/drivers/dri/i965/brw_context.c index d4a7d3de7a7..a4884edeb53 100644 --- a/src/mesa/drivers/dri/i965/brw_context.c +++ b/src/mesa/drivers/dri/i965/brw_context.c @@ -925,10 +925,6 @@ intelDestroyContext(__DRIcontext * driContextPriv) (struct brw_context *) driContextPriv->driverPrivate; struct gl_context *ctx = &brw->ctx; - assert(brw); /* should never be null */ - if (!brw) - return; - /* Dump a final BMP in case the application doesn't call SwapBuffers */ if (INTEL_DEBUG & DEBUG_AUB) { intel_batchbuffer_flush(brw);