summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri
diff options
context:
space:
mode:
authorMatt Turner <[email protected]>2015-04-11 09:54:38 -0700
committerMatt Turner <[email protected]>2015-04-11 09:59:47 -0700
commitea0c35faf88962e049c0a67ce714e03933383be1 (patch)
treef80e1cf2bcb130f0fec406e747a74afc0b5bccf3 /src/mesa/drivers/dri
parent024ecc783b763712d2896fd315d8b5222c27b1ec (diff)
i965: Remove useless null check.
If it were null, we'd have just derefernced it two lines above.
Diffstat (limited to 'src/mesa/drivers/dri')
-rw-r--r--src/mesa/drivers/dri/i965/brw_context.c4
1 files changed, 0 insertions, 4 deletions
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);