enlightenment/src/modules/cpufreq
Lucas De Marchi 63f07459a0 Convert (hopefully) all comparisons to NULL
Apply badzero.cocci, badnull.coci and badnull2.cocci

This should convert all cases where there's a comparison to NULL to simpler
forms. This patch applies the following transformations:

code before patch               ||code after patch
===============================================================

return a == NULL;                 return !a;

return a != NULL;                 return !!a;

func(a == NULL);                  func(!a);

func(a != NULL);                  func(!!a);

b = a == NULL;                    b = !a;

b = a != NULL;                    b = !!a;

b = a == NULL ? c : d;            b = !a ? c : d;

b = a != NULL ? c : d;            b = a ? c : d;


other cases:

a == NULL                         !a
a != NULL                         a




SVN revision: 51487
2010-08-21 13:52:25 +00:00
..
.cvsignore
Makefile.am Correctly include eina and fix pkg-config description. 2008-10-15 10:03:45 +00:00
e-module-cpufreq.edj * edje: fix count that lead to memleak. 2010-08-12 15:07:26 +00:00
e_mod_main.c Convert (hopefully) all comparisons to NULL 2010-08-21 13:52:25 +00:00
e_mod_main.h E_EVENT_POWERSAVE_UPDATE for the masses 2008-11-24 08:32:34 +00:00
freqset.c FORMATTING 2010-08-04 16:57:32 +00:00
module.desktop.in Fix module description typo. 2010-04-09 01:06:51 +00:00