mesa/src/gallium/state_trackers
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
..
clover clover: Accept CL_MEM_READ_WRITE flag 2012-08-24 17:10:14 +02:00
d3d1x automake: Globally add stub automake targets to the old Makefiles. 2012-06-11 09:28:00 -07:00
dri mesa: s/FREE/free/ 2012-09-01 07:47:24 -06:00
egl Remove useless checks for NULL before freeing 2012-09-05 22:28:50 -07:00
gbm gbm: Add gbm_bo_import for gallium gbm backend 2012-07-17 10:54:00 -04:00
glx Remove useless checks for NULL before freeing 2012-09-05 22:28:50 -07:00
va vl: move winsys helper out of winsys directory 2012-03-28 15:47:41 +02:00
vdpau st/vdpau: use template size as default for source_rect. 2012-06-20 10:13:38 +02:00
vega Remove useless checks for NULL before freeing 2012-09-05 22:28:50 -07:00
wgl Remove useless checks for NULL before freeing 2012-09-05 22:28:50 -07:00
xa st/xa: updates for CSO interface changes 2012-08-03 11:56:28 -06:00
xorg st/xorg: updates for CSO interface changes 2012-08-03 11:56:36 -06:00
xvmc Remove useless checks for NULL before freeing 2012-09-05 22:28:50 -07:00
Makefile clover: Import OpenCL state tracker. 2012-05-11 12:39:44 +02:00
README Code reorganization: placeholder for state-trackers. 2008-02-15 17:52:14 +09:00

This directory is a placeholder for incubating state-trackers. Mesa's
state-tracker is in src/mesa.