Remove useless checks for NULL before freeing
authorMatt Turner <mattst88@gmail.com>
Mon, 22 Sep 2014 04:13:33 +0000 (21:13 -0700)
committerMatt Turner <mattst88@gmail.com>
Tue, 9 Dec 2014 01:02:19 +0000 (17:02 -0800)
commit9019e5e19532fe214fc6e45b9ee1f60bbe332456
treec382866b78653aea157f085c9cdb8bd3695798e8
parentcae7a2a0319e31eef0975edafc730efd3bd2c8d4
Remove useless checks for NULL before freeing

See commits 5067506e and b6109de3 for the Coccinelle script.

Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
20 files changed:
src/gallium/auxiliary/util/u_debug_flush.c
src/gallium/drivers/i915/i915_state.c
src/gallium/drivers/ilo/shader/toy_tgsi.c
src/gallium/drivers/nouveau/nv50/nv50_context.c
src/gallium/drivers/nouveau/nv50/nv84_video.c
src/gallium/drivers/nouveau/nvc0/nvc0_context.c
src/gallium/drivers/nouveau/nvc0/nvc0_program.c
src/gallium/drivers/nouveau/nvc0/nvc0_surface.c
src/gallium/drivers/r600/r600_isa.c
src/gallium/drivers/softpipe/sp_tile_cache.c
src/gallium/state_trackers/hgl/hgl.c
src/gallium/state_trackers/nine/nine_shader.c
src/gallium/state_trackers/nine/pixelshader9.c
src/gallium/state_trackers/nine/stateblock9.c
src/gallium/state_trackers/nine/swapchain9.c
src/gallium/state_trackers/nine/vertexdeclaration9.c
src/gallium/state_trackers/nine/vertexshader9.c
src/gallium/winsys/svga/drm/vmw_screen_ioctl.c
src/mesa/drivers/dri/common/xmlconfig.c
src/mesa/main/objectlabel.c