intel: Return if pointer to intel_context is null
authorAnuj Phogat <anuj.phogat@gmail.com>
Tue, 17 Jan 2012 21:21:52 +0000 (13:21 -0800)
committerAnuj Phogat <anuj.phogat@gmail.com>
Wed, 18 Jan 2012 00:58:38 +0000 (16:58 -0800)
commitce1c949b162260cec84431913f7aac83cb1b938e
tree31aef2b335d7e9a6a811f24bf9746a89f3374724
parent46ce25722b364ae7fa20b61e60eff4be5ad051d3
intel: Return if pointer to intel_context is null

It is better to test if(intel == NULL) and simply return in that case.

Signed-off-by: Anuj Phogat <anuj.phogat@gmail.com>
Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
src/mesa/drivers/dri/intel/intel_screen.c