Revision 3fe68cc152fc7cc6a763c692544a0ab71926c800 authored by Julia Lawall on 14 October 2008, 16:00:19 UTC, committed by James Bottomley on 23 October 2008, 16:42:19 UTC
The pattern !E && !E->fld is nonsensical.  The patch below updates this
according to the assumption that && should be ||.  But perhaps another
solution was intended.

The semantic patch that makes this change is as follows:
(http://www.emn.fr/x-info/coccinelle/)

// <smpl>
@disable and_comm@
expression E;
identifier fld;
@@

- !E && !E->fld
+ !E || !E->fld
// </smpl>

Signed-off-by: Julia Lawall <julia@diku.dk>
Acked-By: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
1 parent d4c9b73
History
File Mode Size
ircomm
irlan
irnet
Kconfig -rw-r--r-- 3.3 KB
Makefile -rw-r--r-- 503 bytes
af_irda.c -rw-r--r-- 66.3 KB
discovery.c -rw-r--r-- 12.5 KB
irda_device.c -rw-r--r-- 7.9 KB
iriap.c -rw-r--r-- 26.1 KB
iriap_event.c -rw-r--r-- 12.4 KB
irias_object.c -rw-r--r-- 13.4 KB
irlap.c -rw-r--r-- 33.7 KB
irlap_event.c -rw-r--r-- 65.0 KB
irlap_frame.c -rw-r--r-- 36.2 KB
irlmp.c -rw-r--r-- 54.3 KB
irlmp_event.c -rw-r--r-- 25.9 KB
irlmp_frame.c -rw-r--r-- 14.0 KB
irmod.c -rw-r--r-- 5.4 KB
irnetlink.c -rw-r--r-- 3.4 KB
irproc.c -rw-r--r-- 2.5 KB
irqueue.c -rw-r--r-- 22.8 KB
irsysctl.c -rw-r--r-- 8.1 KB
irttp.c -rw-r--r-- 50.5 KB
parameters.c -rw-r--r-- 15.3 KB
qos.c -rw-r--r-- 22.4 KB
timer.c -rw-r--r-- 6.3 KB
wrapper.c -rw-r--r-- 13.0 KB

back to top