linux/drivers/s390
Julia Lawall b2bbb642ac [S390] cio: Correct use of ! and &
In commit e6bafba5b4, a bug was fixed that
involved converting !x & y to !(x & y).  The code below shows the same
pattern, and thus should perhaps be fixed in the same way.  In particular,
the result of !scsw_stctl(&request->irb.scsw) & SCSW_STCTL_STATUS_PEND is
always just !scsw_stctl(&request->irb.scsw).

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

// <smpl>
@@ expression E; constant C; @@
(
  !E & !C
|
- !E & C
+ !(E & C)
)
// </smpl>

Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
2008-10-10 21:33:54 +02:00
..
block [S390] bus_id -> dev_set_name() changes 2008-10-10 21:33:50 +02:00
char [S390] more bus_id -> dev_name conversions 2008-10-10 21:33:50 +02:00
cio [S390] cio: Correct use of ! and & 2008-10-10 21:33:54 +02:00
crypto [S390] bus_id -> dev_set_name() changes 2008-10-10 21:33:50 +02:00
kvm [S390] Use s390_root_dev_* in kvm_virtio. 2008-10-10 21:33:51 +02:00
net [S390] more bus_id -> dev_name conversions 2008-10-10 21:33:50 +02:00
scsi [S390] more bus_id -> dev_name conversions 2008-10-10 21:33:50 +02:00
ebcdic.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
Makefile s390: KVM guest: virtio device support, and kvm hypercalls 2008-04-27 12:00:51 +03:00
s390_rdev.c [S390] bus_id -> dev_set_name() changes 2008-10-10 21:33:50 +02:00
s390mach.c [S390] stp support. 2008-07-14 10:02:09 +02:00
s390mach.h [S390] stp support. 2008-07-14 10:02:09 +02:00
sysinfo.c [S390] Add new fields for System z10 to /proc/sysinfo 2008-04-17 07:47:01 +02:00