Apply double_condition_check.cocci
authorlucas <lucas@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 26 Aug 2010 20:45:09 +0000 (20:45 +0000)
committerlucas <lucas@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 26 Aug 2010 20:45:09 +0000 (20:45 +0000)
commite09924d9ed89ff344f90356d93c3598719d7999b
tree3b4c2d11a63892fc9e5b463532dc0ed4a50574de
parent16d0afebe7b415e9ed2c4c8d9b66c01353c590ec
Apply double_condition_check.cocci

The offending projects were:

 E16/e/src/backgrounds.c                 |   10 ++++------
 PROTO/eon/src/lib/layout/eon_stack.c    |    4 +---
 ecore/src/lib/ecore_win32/ecore_win32.c |    3 +--
 ecore/src/lib/ecore_wince/ecore_wince.c |    3 +--
 edje/src/lib/edje_edit.c                |    3 +--
 evas/src/lib/cache/evas_cache_image.c   |    2 +-
 exalt/src/lib/libexalt_private.c        |    2 +-

This patch assumes code in these places were insane and the fix is to remove
one condition check. Most likely this is not true, but there's no automatic fix
for that.

Looking at the patch, it seems that some places should use "x" and "y" vars but
used just one of them and therefore they were caught by coccinelle.

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/ecore@51666 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33
src/lib/ecore_win32/ecore_win32.c
src/lib/ecore_wince/ecore_wince.c