Skip to content

Commit

Permalink
hpt366: remove redundant check from init_dma_hpt366()
Browse files Browse the repository at this point in the history
->init_dma() cannot be called with dmabase == 0
(see drivers/ide/setup-pci.c)

Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
  • Loading branch information
Bartlomiej Zolnierkiewicz committed Feb 17, 2007
1 parent 8b25c60 commit 73d4f7d
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions drivers/ide/pci/hpt366.c
Original file line number Diff line number Diff line change
Expand Up @@ -1391,9 +1391,6 @@ static void __devinit init_dma_hpt366(ide_hwif_t *hwif, unsigned long dmabase)
u8 dma_new = 0, dma_old = 0;
unsigned long flags;

if (!dmabase)
return;

dma_old = hwif->INB(dmabase + 2);

local_irq_save(flags);
Expand Down

0 comments on commit 73d4f7d

Please sign in to comment.