Skip to contentSkip to conversation

au1xxx-ide: auide_dma_end() cleanup

PATCH New Bartlomiej Zolnierkiewicz 1 participant 1 message Feb 1, 2009 libata

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 au1xxx-ide: auide_dma_end() cleanup

No need to check / clear hwif->sg_nents.

There should be no functional changes caused by this patch.

---
 drivers/ide/au1xxx-ide.c |    7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)
drivers/ide/au1xxx-ide.c +1 -6
Index: b/drivers/ide/au1xxx-ide.c
===================================================================
@@ -286,12 +286,7 @@ static int auide_build_dmatable(ide_driv
 
 static int auide_dma_end(ide_drive_t *drive)
 {
-	ide_hwif_t *hwif = drive->hwif;
-
-	if (hwif->sg_nents) {
-		ide_destroy_dmatable(drive);
-		hwif->sg_nents = 0;
-	}
+	ide_destroy_dmatable(drive);
 
 	return 0;
 }