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>
This commit is contained in:
parent
e2bcb2acb0
commit
e295b8d274
1 changed files with 1 additions and 6 deletions
|
@ -286,12 +286,7 @@ static int auide_build_dmatable(ide_drive_t *drive)
|
||||||
|
|
||||||
static int auide_dma_end(ide_drive_t *drive)
|
static int auide_dma_end(ide_drive_t *drive)
|
||||||
{
|
{
|
||||||
ide_hwif_t *hwif = drive->hwif;
|
ide_destroy_dmatable(drive);
|
||||||
|
|
||||||
if (hwif->sg_nents) {
|
|
||||||
ide_destroy_dmatable(drive);
|
|
||||||
hwif->sg_nents = 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue