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
Kconfig -rw-r--r-- 2.9 KB
Kconfig.iosched -rw-r--r-- 1.9 KB
Makefile -rw-r--r-- 627 bytes
as-iosched.c -rw-r--r-- 38.7 KB
blk-barrier.c -rw-r--r-- 9.0 KB
blk-core.c -rw-r--r-- 57.2 KB
blk-exec.c -rw-r--r-- 2.7 KB
blk-integrity.c -rw-r--r-- 9.8 KB
blk-ioc.c -rw-r--r-- 4.0 KB
blk-map.c -rw-r--r-- 7.8 KB
blk-merge.c -rw-r--r-- 10.3 KB
blk-settings.c -rw-r--r-- 14.5 KB
blk-softirq.c -rw-r--r-- 4.1 KB
blk-sysfs.c -rw-r--r-- 9.2 KB
blk-tag.c -rw-r--r-- 9.8 KB
blk-timeout.c -rw-r--r-- 5.6 KB
blk.h -rw-r--r-- 3.1 KB
blktrace.c -rw-r--r-- 12.3 KB
bsg.c -rw-r--r-- 23.1 KB
cfq-iosched.c -rw-r--r-- 57.2 KB
cmd-filter.c -rw-r--r-- 5.4 KB
compat_ioctl.c -rw-r--r-- 22.0 KB
deadline-iosched.c -rw-r--r-- 11.4 KB
elevator.c -rw-r--r-- 26.8 KB
genhd.c -rw-r--r-- 26.4 KB
ioctl.c -rw-r--r-- 8.5 KB
noop-iosched.c -rw-r--r-- 2.6 KB
scsi_ioctl.c -rw-r--r-- 17.2 KB

back to top