Skip to content

Commit

Permalink
ide: remove redundant ->ide_dma_on call from set_using_dma()
Browse files Browse the repository at this point in the history
ide_set_dma() calls ->ide_dma_on method itself and returns zero
only if ->ide_dma_on call succeeded.

There should be no functionality changes caused by this patch.

Acked-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
  • Loading branch information
Bartlomiej Zolnierkiewicz committed Jan 25, 2008
1 parent 4eed504 commit 23b1bd4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/ide/ide.c
Original file line number Diff line number Diff line change
Expand Up @@ -852,7 +852,7 @@ int set_using_dma(ide_drive_t *drive, int arg)

if (arg) {
hwif->dma_off_quietly(drive);
if (ide_set_dma(drive) || hwif->ide_dma_on(drive))
if (ide_set_dma(drive))
err = -EIO;
} else
ide_dma_off(drive);
Expand Down

0 comments on commit 23b1bd4

Please sign in to comment.