Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e295b8d2 authored by Bartlomiej Zolnierkiewicz's avatar Bartlomiej Zolnierkiewicz
Browse files

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: default avatarBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
parent e2bcb2ac
Loading
Loading
Loading
Loading
+1 −6
Original line number Original line Diff line number Diff line
@@ -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;

	if (hwif->sg_nents) {
	ide_destroy_dmatable(drive);
	ide_destroy_dmatable(drive);
		hwif->sg_nents = 0;
	}


	return 0;
	return 0;
}
}