diff options
author | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2009-03-27 07:46:33 -0400 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2009-03-27 07:46:33 -0400 |
commit | e295b8d27465a106cd3db150129ab539704e4c65 (patch) | |
tree | 78bab6a36cba4962da055a113434113d52915218 /drivers | |
parent | e2bcb2acb0b076fd0e3388ed0139eb6447fa9ae9 (diff) |
au1xxx-ide: auide_dma_end() cleanup
No need to check / clear hwif->sg_nents.
There should be no functional changes caused by this patch.
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/ide/au1xxx-ide.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/ide/au1xxx-ide.c b/drivers/ide/au1xxx-ide.c index 154ec2cf734f..82f153810eb9 100644 --- a/drivers/ide/au1xxx-ide.c +++ b/drivers/ide/au1xxx-ide.c | |||
@@ -286,12 +286,7 @@ static int auide_build_dmatable(ide_drive_t *drive) | |||
286 | 286 | ||
287 | static int auide_dma_end(ide_drive_t *drive) | 287 | static int auide_dma_end(ide_drive_t *drive) |
288 | { | 288 | { |
289 | ide_hwif_t *hwif = drive->hwif; | 289 | ide_destroy_dmatable(drive); |
290 | |||
291 | if (hwif->sg_nents) { | ||
292 | ide_destroy_dmatable(drive); | ||
293 | hwif->sg_nents = 0; | ||
294 | } | ||
295 | 290 | ||
296 | return 0; | 291 | return 0; |
297 | } | 292 | } |