diff options
author | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-01-25 22:17:19 +0100 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-01-25 22:17:19 +0100 |
commit | 7b905994ce0bd332afc5ebc30ce9afa60d23c6e2 (patch) | |
tree | 4f0f25616d816087e0022dce95f996c99c8dcc6e /drivers/ide/ide-io.c | |
parent | 23b1bd459c9e8a925381960f0b69ac85468c3af1 (diff) | |
download | kernel-crypto-7b905994ce0bd332afc5ebc30ce9afa60d23c6e2.tar.gz kernel-crypto-7b905994ce0bd332afc5ebc30ce9afa60d23c6e2.tar.xz kernel-crypto-7b905994ce0bd332afc5ebc30ce9afa60d23c6e2.zip |
ide: cleanup ide_set_dma()
* ->dma_off_quietly is always called before ide_set_dma()
so the call can be moved inside ide_set_dma().
* ide_dma_check() doesn't touch hardware so ->dma_off_quietly
call for 'rc == -1' case is redundant, remove it.
* '0' and '-1' are the only values returned by ide_dma_check()
so remove dead code for other cases.
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/ide-io.c')
-rw-r--r-- | drivers/ide/ide-io.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/ide/ide-io.c b/drivers/ide/ide-io.c index e053e00a705..2711b5a6962 100644 --- a/drivers/ide/ide-io.c +++ b/drivers/ide/ide-io.c @@ -221,7 +221,6 @@ static ide_startstop_t ide_start_power_step(ide_drive_t *drive, struct request * */ if (drive->hwif->ide_dma_on == NULL) break; - drive->hwif->dma_off_quietly(drive); /* * TODO: respect ->using_dma setting */ |