linux/drivers/ide/pci
Sergei Shtylyov 8108b88232 sgiioc4: kill useless address checks
The driver performs a number of checks on the virtual/physical addresses which
would always evaluate as true (except ide_dma_sgiioc4() -- always false):

- for sgiioc4_init_hwif_ports(), its caller, sgiioc4_ide_setup_pci_device(),
  guarantees that 'ctrl_port' and 'irq_port' parameters are never 0;

- in sgiioc4_read_status(), we always read the IDE status register, so there's
  no need to check the register's address (must be a leftover from the times
  when this function implemented the INB() method);

- in ide_dma_sgiioc4(), 'dma_base' can never be 0 as IOC4_DMA_OFFSET is not 0.

Signed-off-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Cc: jeremy@sgi.com
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
2008-10-17 18:09:16 +02:00
..
aec62xx.c ide: use unique names for struct pci_driver instances 2008-10-13 21:39:41 +02:00
alim15x3.c ide: __ide_dma_end() -> ide_dma_end() 2008-10-13 21:39:46 +02:00
amd74xx.c ide: use unique names for struct pci_driver instances 2008-10-13 21:39:41 +02:00
atiixp.c ide: use unique names for struct pci_driver instances 2008-10-13 21:39:41 +02:00
cmd64x.c ide: __ide_dma_end() -> ide_dma_end() 2008-10-13 21:39:46 +02:00
cmd640.c ide: use 'drive->dn & 1' instead of drive->select.b.unit 2008-10-13 21:39:40 +02:00
cs5520.c ide: use unique names for struct pci_driver instances 2008-10-13 21:39:41 +02:00
cs5530.c ide: use unique names for struct pci_driver instances 2008-10-13 21:39:41 +02:00
cs5535.c ide: use unique names for struct pci_driver instances 2008-10-13 21:39:41 +02:00
cy82c693.c ide: use unique names for struct pci_driver instances 2008-10-13 21:39:41 +02:00
delkin_cb.c delkin_cb: add PM support 2008-10-17 18:09:16 +02:00
generic.c ide: use unique names for struct pci_driver instances 2008-10-13 21:39:41 +02:00
hpt366.c hpt366: cleanup maskproc() method 2008-10-17 18:09:15 +02:00
it821x.c ide: __ide_dma_end() -> ide_dma_end() 2008-10-13 21:39:46 +02:00
it8213.c ide: use unique names for struct pci_driver instances 2008-10-13 21:39:41 +02:00
jmicron.c ide: use unique names for struct pci_driver instances 2008-10-13 21:39:41 +02:00
Makefile ide: remove broken hpt34x driver 2008-10-17 18:09:16 +02:00
ns87415.c ide: use unique names for struct pci_driver instances 2008-10-13 21:39:41 +02:00
opti621.c ide: use unique names for struct pci_driver instances 2008-10-13 21:39:41 +02:00
pdc202xx_new.c ide: use unique names for struct pci_driver instances 2008-10-13 21:39:41 +02:00
pdc202xx_old.c ide: __ide_dma_end() -> ide_dma_end() 2008-10-13 21:39:46 +02:00
piix.c piix: add Hercules EC-900 mini-notebook to ich_laptop short cable list 2008-10-13 21:39:50 +02:00
rz1000.c ide: use unique names for struct pci_driver instances 2008-10-13 21:39:41 +02:00
sc1200.c ide: use unique names for struct pci_driver instances 2008-10-13 21:39:41 +02:00
scc_pata.c ide: switch to DMA-mapping API part #2 2008-10-13 21:39:47 +02:00
serverworks.c ide: use unique names for struct pci_driver instances 2008-10-13 21:39:41 +02:00
sgiioc4.c sgiioc4: kill useless address checks 2008-10-17 18:09:16 +02:00
siimage.c ide: __ide_dma_end() -> ide_dma_end() 2008-10-13 21:39:46 +02:00
sis5513.c ide: use unique names for struct pci_driver instances 2008-10-13 21:39:41 +02:00
sl82c105.c ide: __ide_dma_end() -> ide_dma_end() 2008-10-13 21:39:46 +02:00
slc90e66.c ide: use unique names for struct pci_driver instances 2008-10-13 21:39:41 +02:00
tc86c001.c ide: __ide_dma_end() -> ide_dma_end() 2008-10-13 21:39:46 +02:00
triflex.c ide: use unique names for struct pci_driver instances 2008-10-13 21:39:41 +02:00
trm290.c ide: use unique names for struct pci_driver instances 2008-10-13 21:39:41 +02:00
via82cxxx.c ide: use unique names for struct pci_driver instances 2008-10-13 21:39:41 +02:00