mesa/src/gallium/winsys
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
..
i915 configure: replace pkg-config calls with $(PKG_CONFIG) in the makefiles. 2011-10-04 11:19:48 -07:00
nouveau/drm nvc0: add initial support for nve4+ (Kepler) chipsets 2012-04-15 00:08:51 +02:00
radeon/drm Don't cast the return value of malloc/realloc 2012-09-05 22:28:50 -07:00
svga/drm scons: Add support for Intel Compiler. 2012-08-01 21:28:47 -07:00
sw Remove useless checks for NULL before freeing 2012-09-05 22:28:50 -07:00
Makefile vl: Get softpipe building again. 2010-05-08 20:11:29 -04:00