mesa/src/gallium/targets
Matt Turner b6109de34f Remove useless checks for NULL before freeing
Same as earlier commit, except for "FREE"

This patch has been generated by the following Coccinelle semantic
patch:

// Remove useless checks for NULL before freeing
//
// free (NULL) is a no-op, so there is no need to avoid it

@@
expression E;
@@
+ FREE (E);
+ E = NULL;
- if (unlikely (E != NULL)) {
-   FREE(E);
(
-   E = NULL;
|
-   E = 0;
)
   ...
- }

@@
expression E;
type T;
@@
+ FREE ((T) E);
+ E = NULL;
- if (unlikely (E != NULL)) {
-   FREE((T) E);
(
-   E = NULL;
|
-   E = 0;
)
   ...
- }

@@
expression E;
@@
+ FREE (E);
- if (unlikely (E != NULL)) {
-   FREE (E);
- }

@@
expression E;
type T;
@@
+ FREE ((T) E);
- if (unlikely (E != NULL)) {
-   FREE ((T) E);
- }

Reviewed-by: Brian Paul <brianp@vmware.com>
2012-09-05 22:28:50 -07:00
..
dri-i915 Fix linking gallium drivers and with dricore after defadf2b1 2012-07-13 17:20:39 +01:00
dri-nouveau Fix linking gallium drivers and with dricore after defadf2b1 2012-07-13 17:20:39 +01:00
dri-r300 Fix linking gallium drivers and with dricore after defadf2b1 2012-07-13 17:20:39 +01:00
dri-r600 Fix linking gallium drivers and with dricore after defadf2b1 2012-07-13 17:20:39 +01:00
dri-radeonsi Fix linking gallium drivers and with dricore after defadf2b1 2012-07-13 17:20:39 +01:00
dri-swrast swrast: add DRM_DRIVER_DESCRIPTOR to store driver name 2012-08-23 19:57:50 +04:00
dri-vmwgfx scons: Do not build svga if using Solaris Studio C compiler. 2012-06-18 16:37:46 -07:00
egl-static targets/egl-static: Fix some missing symbols. 2012-05-12 17:10:32 +01:00
gbm gbm: Fix build without gallium_drm_loader 2012-08-12 14:38:32 -07:00
graw-gdi graw-gdi: Silence gcc missing initialization warning. 2011-03-06 09:10:03 +00:00
graw-null graw: Include p_shader_tokens.h for tgsi_token struct. 2010-12-30 01:49:26 -08:00
graw-xlib Remove useless checks for NULL before freeing 2012-09-05 22:28:50 -07:00
libgl-gdi libgl-gdi: Mingw-w64 in 32bit mode matches the Mingw32's .DEF semantics. 2011-11-03 09:59:34 +00:00
libgl-xlib scons: add code to generate the various GL API files 2012-05-31 09:40:35 -06:00
opencl clover: Fix build with LLVM libs installed to non-standard directories 2012-06-15 13:22:16 -04:00
pipe-loader radeonsi: Fixups for recent build infrastructure changes. 2012-05-12 12:12:21 +02:00
va-r300 vl: move winsys helper out of winsys directory 2012-03-28 15:47:41 +02:00
va-r600 vl: move winsys helper out of winsys directory 2012-03-28 15:47:41 +02:00
va-softpipe vl: move winsys helper out of winsys directory 2012-03-28 15:47:41 +02:00
vdpau-nouveau nv30: import new driver for GeForce FX/6/7 chipsets, and Quadro variants 2012-04-14 02:56:34 +10:00
vdpau-r300 vl: move winsys helper out of winsys directory 2012-03-28 15:47:41 +02:00
vdpau-r600 vl: move winsys helper out of winsys directory 2012-03-28 15:47:41 +02:00
vdpau-radeonsi radeonsi: initial VDPAU target 2012-08-02 15:15:23 +02:00
vdpau-softpipe vl: move winsys helper out of winsys directory 2012-03-28 15:47:41 +02:00
xa-vmwgfx st/xa: Bump version to 1.0.0 according to the README 2012-01-12 13:31:34 +01:00
xorg-i915 drm_driver: Add a configuration function to the driver descriptor. 2011-10-14 09:53:05 +02:00
xorg-nouveau xorg/nouveau: switch to libdrm_nouveau-2.0 2012-04-13 21:55:56 +02:00
xorg-r300 r600g: add support for common surface allocator for tiling v13 2012-02-06 18:36:37 -05:00
xorg-r600 r600g: add support for common surface allocator for tiling v13 2012-02-06 18:36:37 -05:00
xorg-radeonsi radeonsi: Initial tiling support. 2012-05-16 18:30:50 +02:00
xvmc-nouveau targets/xvmc-nouveau: fix accidental hardcoded include path 2012-04-15 16:40:53 +02:00
xvmc-r300 vl: move winsys helper out of winsys directory 2012-03-28 15:47:41 +02:00
xvmc-r600 vl: move winsys helper out of winsys directory 2012-03-28 15:47:41 +02:00
xvmc-softpipe vl: move winsys helper out of winsys directory 2012-03-28 15:47:41 +02:00
Makefile gallium: introduce target directory 2010-03-08 19:11:35 +00:00
Makefile.dri Link dri drivers with mesa or dricore libtool library 2012-07-13 12:44:03 +01:00
Makefile.va build: Remove EXTRA_LIB_PATH 2012-08-16 15:04:54 -07:00
Makefile.vdpau build: Remove EXTRA_LIB_PATH 2012-08-16 15:04:54 -07:00
Makefile.xorg gallium/targets: pass ldflags parameter to MKLIB 2012-05-25 09:36:24 -06:00
Makefile.xvmc build: Remove EXTRA_LIB_PATH 2012-08-16 15:04:54 -07:00
SConscript.dri gallium/dri: Remove references to vblank. 2011-11-02 16:16:50 +00:00