summaryrefslogtreecommitdiff
path: root/Makefile.am
diff options
context:
space:
mode:
authorLucas De Marchi <lucas.demarchi@profusion.mobi>2010-07-14 02:05:47 +0000
committerLucas De Marchi <lucas.demarchi@profusion.mobi>2010-07-14 02:05:47 +0000
commit238f0d1d11e3ad1120e4b2b42d7a89a848af5681 (patch)
tree8e5e830ac57679490317a47728d57a4f6bc2e1aa /Makefile.am
parentb34228a4b139149dc46eff293b892a05cec8095c (diff)
downloadeet-238f0d1d11e3ad1120e4b2b42d7a89a848af5681.tar.gz
Remove unneeded code with notnull.cocci script
The notnull.cocci script from Coccinelle finds places where you check if a variable is NULL, but it's known not to be NULL. The check can be safely removed. For example, this code would be caught by notnull: if (!var) return; if (var && var->fld) { ... } It's needless to check again if var is not NULL because if it's in fact NULL, it would have returned on the previous "if". This commit removes all the trivial places where this pattern happens. Another patch will be generated for the more complex cases. SVN revision: 50241
Diffstat (limited to 'Makefile.am')
0 files changed, 0 insertions, 0 deletions