Skip to content

Commit

Permalink
ide: fix IDE_HFLAG_NO_ATAPI_DMA handling in config_drive_for_dma()
Browse files Browse the repository at this point in the history
commit 33c1002 incorrectly changed return
value from '0' to '-1', fix it (ns87415 was the only host driver affected
since it uses both IDE_HFLAG_TRUST_BIOS_FOR_DMA and IDE_HFLAG_NO_ATAPI_DMA).

Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
  • Loading branch information
Bartlomiej Zolnierkiewicz committed Nov 5, 2007
1 parent 0174511 commit bcbf6ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/ide/ide-dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ static int config_drive_for_dma (ide_drive_t *drive)

if (drive->media != ide_disk) {
if (hwif->host_flags & IDE_HFLAG_NO_ATAPI_DMA)
return -1;
return 0;
}

/*
Expand Down

0 comments on commit bcbf6ee

Please sign in to comment.