summaryrefslogtreecommitdiffstats
path: root/drivers/ide
diff options
context:
space:
mode:
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2008-01-25 22:17:19 +0100
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2008-01-25 22:17:19 +0100
commit23b1bd459c9e8a925381960f0b69ac85468c3af1 (patch)
tree6bef66f5615334435a3fdc2fd1c617b79e609288 /drivers/ide
parent4eed504d140319d6c1c7e0a5b7a9bf41dabf7cea (diff)
downloadkernel-crypto-23b1bd459c9e8a925381960f0b69ac85468c3af1.tar.gz
kernel-crypto-23b1bd459c9e8a925381960f0b69ac85468c3af1.tar.xz
kernel-crypto-23b1bd459c9e8a925381960f0b69ac85468c3af1.zip
ide: remove redundant ->ide_dma_on call from set_using_dma()
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>
Diffstat (limited to 'drivers/ide')
-rw-r--r--drivers/ide/ide.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ide/ide.c b/drivers/ide/ide.c
index 4acd87e92cc..00ef6ec2c27 100644
--- a/drivers/ide/ide.c
+++ b/drivers/ide/ide.c
@@ -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);