From: Timothy Arceri Date: Sat, 21 May 2016 02:06:58 +0000 (+1000) Subject: i965: remove redundant NULL check X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a83e9afbe4bb6e89b95b6bd32c6e7b2b08402c47;p=mesa.git i965: remove redundant NULL check We would have segfaulted in the above code if prog could be NULL. Reviewed-by: Kenneth Graunke --- diff --git a/src/mesa/drivers/dri/i965/brw_gs.c b/src/mesa/drivers/dri/i965/brw_gs.c index 4dddb863e97..8f5dcf359e9 100644 --- a/src/mesa/drivers/dri/i965/brw_gs.c +++ b/src/mesa/drivers/dri/i965/brw_gs.c @@ -144,7 +144,7 @@ brw_codegen_gs_prog(struct brw_context *brw, brw_compute_vue_map(brw->intelScreen->devinfo, &prog_data.base.vue_map, outputs_written, - prog ? prog->SeparateShader : false); + prog->SeparateShader); if (unlikely(INTEL_DEBUG & DEBUG_GS)) brw_dump_ir("geometry", prog, gs, NULL);