mesa/src/gallium/auxiliary
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
..
cso_cache gallium: remove PIPE_MAX_VERTEX/GEOMETRY_SAMPLERS #define 2012-08-16 09:01:31 -06:00
draw Remove useless checks for NULL before freeing 2012-09-05 22:28:50 -07:00
gallivm gallivm,llvmpipe: Use 4-wide vectors on AMD Bulldozer. 2012-09-04 08:49:00 +01:00
indices indices: fix conversion of PIPE_PRIM_POLYGON to lines 2011-06-24 16:44:43 -06:00
os util: add GALLIUM_LOG_FILE option for logging output to a file 2012-05-25 10:02:21 -06:00
pipe-loader pipe_loader: Try to connect with the X server before probing pciids v2 2012-07-23 13:25:36 +00:00
pipebuffer Remove useless checks for NULL before freeing 2012-09-05 22:28:50 -07:00
postprocess gallium: consolidate CSO sampler and sampler_view functions 2012-08-03 07:16:35 -06:00
rbug rbug: fix make process on Linux Mint 13 x64. 2012-06-14 08:14:59 -06:00
rtasm gallium/rtasm: properly detect SSE and SSE2 2012-02-27 02:03:23 +01:00
target-helpers target-helpers: Enable debug helpers only on debug builds. 2012-07-06 15:05:16 +01:00
tgsi Remove useless checks for NULL before freeing 2012-09-05 22:28:50 -07:00
translate translate: Fix typo in is_legal_int_format_combo. 2012-08-07 22:34:28 -07:00
util Remove useless checks for NULL before freeing 2012-09-05 22:28:50 -07:00
vl vl: Initialize pipe_vertex_buffer.user_buffer fields. 2012-05-14 08:44:16 -07:00
Android.mk util: Reimplement half <-> float conversions. 2012-06-29 12:21:02 +01:00
Makefile util: Reimplement half <-> float conversions. 2012-06-29 12:21:02 +01:00
Makefile.sources gallivm,draw,llvmpipe: Support wider native registers. 2012-07-17 13:42:39 +01:00
SConscript util: Reimplement half <-> float conversions. 2012-06-29 12:21:02 +01:00