projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4eed504
)
ide: remove redundant ->ide_dma_on call from set_using_dma()
author
Bartlomiej Zolnierkiewicz
<bzolnier@gmail.com>
Fri, 25 Jan 2008 21:17:19 +0000
(22:17 +0100)
committer
Bartlomiej Zolnierkiewicz
<bzolnier@gmail.com>
Fri, 25 Jan 2008 21:17:19 +0000
(22:17 +0100)
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>
drivers/ide/ide.c
patch
|
blob
|
history
diff --git
a/drivers/ide/ide.c
b/drivers/ide/ide.c
index 4acd87e92cca2ff9a7caa1834bd6f900b22f98ca..00ef6ec2c273931175b3cfd37b156b3a44218d78 100644
(file)
--- 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);