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
Makefile -rw-r--r-- 1.0 KB
README -rw-r--r-- 7.9 KB
bitmap.c -rw-r--r-- 36.9 KB
dir.c -rw-r--r-- 8.6 KB
do_balan.c -rw-r--r-- 58.3 KB
file.c -rw-r--r-- 10.1 KB
fix_node.c -rw-r--r-- 79.9 KB
hashes.c -rw-r--r-- 3.6 KB
ibalance.c -rw-r--r-- 35.2 KB
inode.c -rw-r--r-- 91.2 KB
ioctl.c -rw-r--r-- 5.4 KB
item_ops.c -rw-r--r-- 18.6 KB
journal.c -rw-r--r-- 123.9 KB
lbalance.c -rw-r--r-- 41.3 KB
namei.c -rw-r--r-- 44.1 KB
objectid.c -rw-r--r-- 6.9 KB
prints.c -rw-r--r-- 20.0 KB
procfs.c -rw-r--r-- 15.9 KB
resize.c -rw-r--r-- 6.2 KB
stree.c -rw-r--r-- 66.5 KB
super.c -rw-r--r-- 63.5 KB
tail_conversion.c -rw-r--r-- 9.3 KB
xattr.c -rw-r--r-- 32.0 KB
xattr_acl.c -rw-r--r-- 13.0 KB
xattr_security.c -rw-r--r-- 1.3 KB
xattr_trusted.c -rw-r--r-- 1.7 KB
xattr_user.c -rw-r--r-- 1.4 KB

README

back to top