aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2007-02-16 20:40:23 -0500
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2007-02-16 20:40:23 -0500
commit73d4f7d5874b378fa622f156410ffba645c1ef40 (patch)
tree9cfb72f44aaa256bc3d3e4516b1fb404134d710a
parent8b25c60485aab4c7599faef96e7a5d9e8c9003d9 (diff)
hpt366: remove redundant check from init_dma_hpt366()
->init_dma() cannot be called with dmabase == 0 (see drivers/ide/setup-pci.c) Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
-rw-r--r--drivers/ide/pci/hpt366.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/ide/pci/hpt366.c b/drivers/ide/pci/hpt366.c
index 05be8fadda7a..06dce0999105 100644
--- a/drivers/ide/pci/hpt366.c
+++ b/drivers/ide/pci/hpt366.c
@@ -1391,9 +1391,6 @@ static void __devinit init_dma_hpt366(ide_hwif_t *hwif, unsigned long dmabase)
1391 u8 dma_new = 0, dma_old = 0; 1391 u8 dma_new = 0, dma_old = 0;
1392 unsigned long flags; 1392 unsigned long flags;
1393 1393
1394 if (!dmabase)
1395 return;
1396
1397 dma_old = hwif->INB(dmabase + 2); 1394 dma_old = hwif->INB(dmabase + 2);
1398 1395
1399 local_irq_save(flags); 1396 local_irq_save(flags);