From ea0c35faf88962e049c0a67ce714e03933383be1 Mon Sep 17 00:00:00 2001 From: Matt Turner Date: Sat, 11 Apr 2015 09:54:38 -0700 Subject: i965: Remove useless null check. If it were null, we'd have just derefernced it two lines above. --- src/mesa/drivers/dri/i965/brw_context.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'src/mesa/drivers/dri') 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); -- cgit v1.2.3