mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
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 <[email protected]> Signed-off-by: Bartlomiej Zolnierkiewicz <[email protected]>
This commit is contained in:
parent
4eed504d14
commit
23b1bd459c
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue