kernel_optimize_test/drivers/char
Julia Lawall 07fb6f26ba drivers/char/isicom.c: correct use of ! and &
In commit e6bafba5b4 ("wmi: (!x & y)
strikes again"), 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.

This is not tested and clearly changes the semantics, so it is only
something to consider.

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

// <smpl>
@@ expression E1,E2; @@
(
  !E1 & !E2
|
- !E1 & E2
+ !(E1 & E2)
)
// </smpl>

Signed-off-by: Julia Lawall <julia@diku.dk>
Cc: Jiri Slaby <jirislaby@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2008-03-04 16:35:15 -08:00
..
agp agp: fix missing casts that produced a warning. 2008-02-20 10:37:08 +10:00
drm i915: fix AR register restore. 2008-02-22 16:50:29 -08:00
hw_random
ip2 Char: char/serial, remove SERIAL_TYPE_NORMAL redefines 2008-02-07 08:42:33 -08:00
ipmi
mwave
pcmcia ipwireless: fix potential tty == NULL dereference 2008-03-04 16:35:13 -08:00
rio
tpm
xilinx_hwicap [POWERPC] Xilinx: hwicap cleanup 2008-02-28 10:38:33 -06:00
.gitignore
amiserial.c
apm-emulation.c
applicom.c Char: applicom, use pci_match_id 2008-02-08 09:22:41 -08:00
applicom.h
briq_panel.c
cd1865.h
ChangeLog
consolemap.c
cp437.uni
cs5535_gpio.c
cyclades.c
defkeymap.c_shipped Fix default compose table initialization 2008-03-03 14:53:16 -08:00
defkeymap.map
digi1.h
digiFep1.h
digiPCI.h
ds1286.c
ds1302.c
ds1620.c
dsp56k.c
dtlk.c
efirtc.c
epca.c
epca.h Char: char/serial, remove SERIAL_TYPE_NORMAL redefines 2008-02-07 08:42:33 -08:00
epcaconfig.h
esp.c Char: esp, remove hangup and wakeup bottomhalves 2008-02-07 08:42:34 -08:00
generic_nvram.c
generic_serial.c
genrtc.c
hangcheck-timer.c
hpet.c
hvc_beat.c
hvc_console.c
hvc_console.h
hvc_iseries.c
hvc_rtas.c [POWERPC] hvc_rtas_init() must be __init 2008-02-14 22:11:02 +11:00
hvc_vio.c
hvc_xen.c
hvcs.c
hvsi.c
i8k.c i8k: Inspiron E1705 fix 2008-02-07 08:42:33 -08:00
ip27-rtc.c
isicom.c drivers/char/isicom.c: correct use of ! and & 2008-03-04 16:35:15 -08:00
istallion.c Char: istallion, remove hangup bottomhalf 2008-02-07 08:42:34 -08:00
Kconfig sonypi - Move sonypi.txt to Documentation/laptops 2008-02-09 04:15:53 -05:00
keyboard.c
lcd.c
lcd.h
lp.c
Makefile Merge branch 'for-2.6.25' of git://git.kernel.org/pub/scm/linux/kernel/git/paulus/powerpc 2008-02-07 09:02:26 -08:00
mbcs.c MBCS: convert dmareadlock to mutex 2008-02-07 08:42:25 -08:00
mbcs.h MBCS: convert dmareadlock to mutex 2008-02-07 08:42:25 -08:00
mem.c
misc.c
mmtimer.c
moxa.c moxa: first pass at termios reporting 2008-02-08 09:22:24 -08:00
mspec.c
mxser.c Char: mxser, add support for CP-114UL 2008-02-07 08:42:35 -08:00
mxser.h Char: mxser, remove it 2008-02-07 08:42:34 -08:00
n_hdlc.c
n_r3964.c
n_tty.c n_tty: clean up old code to follow coding style and (mostly) checkpatch 2008-02-08 09:22:25 -08:00
nozomi.c
nsc_gpio.c
nvram.c
nwbutton.c
nwbutton.h
nwflash.c
pc8736x_gpio.c
ppdev.c
ps3flash.c
pty.c
random.c
raw.c
riscom8_reg.h
riscom8.c Char: riscom8, remove wakeup and hangup bottomhalves 2008-02-07 08:42:34 -08:00
riscom8.h Char: riscom8, remove wakeup and hangup bottomhalves 2008-02-07 08:42:34 -08:00
rocket_int.h Char: rocket, remove useless macros 2008-02-07 08:42:33 -08:00
rocket.c rocket: don't let random users reset the controller 2008-02-08 09:22:25 -08:00
rocket.h
rtc.c Fix hpet_(un)register_irq_handler() for emulation 2008-02-29 08:06:37 -08:00
scc.h
scx200_gpio.c
selection.c
ser_a2232.c
ser_a2232.h
ser_a2232fw.ax
ser_a2232fw.h
serial167.c Char: serial167, remove bottomhalf 2008-02-07 08:42:34 -08:00
snsc_event.c
snsc.c
snsc.h
sonypi.c
specialix_io8.h Char: specialix, remove bottomhalves 2008-02-07 08:42:34 -08:00
specialix.c specialix.c: fix possible double-unlock 2008-03-04 16:35:10 -08:00
stallion.c Char: stallion, remove bottomhalf 2008-02-07 08:42:34 -08:00
sx.c
sx.h Char: char/serial, remove SERIAL_TYPE_NORMAL redefines 2008-02-07 08:42:33 -08:00
sxboards.h
sxwindow.h
synclink_gt.c
synclink.c
synclinkmp.c
sysrq.c
tb0219.c
tlclk.c
toshiba.c
tty_audit.c tty_audit: fix checkpatch complaint 2008-02-08 09:22:25 -08:00
tty_io.c tty_io: drag screaming into coding style compliance 2008-02-08 09:22:25 -08:00
tty_ioctl.c tty_ioctl: drag screaming into compliance with the coding style 2008-02-08 09:22:25 -08:00
vc_screen.c
viocons.c
viotape.c
virtio_console.c
vme_scc.c
vr41xx_giu.c
vt_ioctl.c
vt.c VT notifier fix for VT switch 2008-03-04 16:35:11 -08:00