android_kernel_samsung_univ.../drivers/ide
Julia Lawall 9ecab6e5bf drivers/ide/{cs5530.c,sc1200.c}: Move a dereference below a NULL test
In each case, if the NULL test is necessary, then the dereference should be
moved below the NULL test.

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

// <smpl>
@@
type T;
expression E;
identifier i,fld;
statement S;
@@

- T i = E->fld;
+ T i;
  ... when != E
      when != i
  if (E == NULL) S
+ i = E->fld;
// </smpl>

Signed-off-by: Julia Lawall <julia@diku.dk>
Acked-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
2008-12-22 23:05:06 +01:00
..
aec62xx.c
ali14xx.c
alim15x3.c alim15x3: fix sparse warning 2008-12-02 20:40:04 +01:00
amd74xx.c amd74xx: workaround unreliable AltStatus register for nVidia controllers 2008-12-02 20:40:03 +01:00
atiixp.c
au1xxx-ide.c
buddha.c
cmd64x.c
cmd640.c
cs5520.c
cs5530.c drivers/ide/{cs5530.c,sc1200.c}: Move a dereference below a NULL test 2008-12-22 23:05:06 +01:00
cs5535.c
cy82c693.c
delkin_cb.c
dtc2278.c
falconide.c
gayle.c
hpt366.c ide: Switch to a common address 2008-11-02 21:40:08 +01:00
ht6560b.c
icside.c icside section warnings 2008-11-30 10:03:36 -08:00
ide_arm.c
ide_platform.c
ide-4drives.c
ide-acpi.c
ide-atapi.c
ide-cd_ioctl.c
ide-cd_verbose.c
ide-cd.c ide-cd: fix DMA alignment regression 2008-11-02 21:40:07 +01:00
ide-cd.h
ide-cs.c pcmcia: add another pata/ide ID 2008-11-09 21:35:36 +01:00
ide-disk_ioctl.c
ide-disk_proc.c
ide-disk.c ide: Switch to a common address 2008-11-02 21:40:08 +01:00
ide-disk.h
ide-dma-sff.c
ide-dma.c
ide-floppy_ioctl.c
ide-floppy_proc.c
ide-floppy.c
ide-floppy.h
ide-gd.c ide-gd: re-get capacity on revalidate 2008-11-02 21:40:10 +01:00
ide-gd.h
ide-generic.c
ide-h8300.c
ide-io.c Revert "ide: respect current DMA setting during resume" 2008-12-08 17:42:35 +01:00
ide-ioctls.c
ide-iops.c ide: remove dead code from drive_is_ready() 2008-12-02 20:40:04 +01:00
ide-lib.c
ide-park.c
ide-pci-generic.c ide: Switch to a common address 2008-11-02 21:40:08 +01:00
ide-pio-blacklist.c
ide-pnp.c
ide-probe.c amd74xx: workaround unreliable AltStatus register for nVidia controllers 2008-12-02 20:40:03 +01:00
ide-proc.c ide: Switch to a common address 2008-11-02 21:40:08 +01:00
ide-scan-pci.c
ide-tape.c
ide-taskfile.c
ide-timings.c
ide.c
it821x.c ide: Switch to a common address 2008-11-02 21:40:08 +01:00
it8213.c
jmicron.c ide: Switch to a common address 2008-11-02 21:40:08 +01:00
Kconfig ide: build-fix for CONFIG_BLK_DEV_IDEDMA_PMAC=n 2008-12-08 17:52:05 +01:00
macide.c
Makefile ide: drivers/ide/generic.c -> drivers/ide/ide-pci-generic.c 2008-10-23 23:24:20 +02:00
ns87415.c
opti621.c
palm_bk3710.c
pdc202xx_new.c
pdc202xx_old.c
piix.c ide: Switch to a common address 2008-11-02 21:40:08 +01:00
pmac.c ide: build-fix for CONFIG_BLK_DEV_IDEDMA_PMAC=n 2008-12-08 17:52:05 +01:00
q40ide.c
qd65xx.c
qd65xx.h
rapide.c arm ide breakage 2008-10-26 09:35:05 -07:00
rz1000.c
sc1200.c drivers/ide/{cs5530.c,sc1200.c}: Move a dereference below a NULL test 2008-12-22 23:05:06 +01:00
scc_pata.c ide: Switch to a common address 2008-11-02 21:40:08 +01:00
serverworks.c
setup-pci.c
sgiioc4.c [IA64] Clear up section mismatch for ioc4_ide_attach_one. 2008-12-09 10:08:48 -08:00
siimage.c ide: Switch to a common address 2008-11-02 21:40:08 +01:00
sis5513.c
sl82c105.c
slc90e66.c
tc86c001.c
triflex.c
trm290.c
tx4938ide.c tx4938ide: Avoid underflow on calculation of a wait cycle 2008-11-02 21:40:10 +01:00
tx4939ide.c
umc8672.c
via82cxxx.c