]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
au1xxx-ide: auide_dma_end() cleanup
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Fri, 27 Mar 2009 11:46:33 +0000 (12:46 +0100)
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Fri, 27 Mar 2009 11:46:33 +0000 (12:46 +0100)
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>
drivers/ide/au1xxx-ide.c

index 154ec2cf734f302a4a154ba948b663e3c8b283b9..82f153810eb98f5ee827a87fc78a827be368da6d 100644 (file)
@@ -286,12 +286,7 @@ static int auide_build_dmatable(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);
-               hwif->sg_nents = 0;
-       }
+       ide_destroy_dmatable(drive);
 
        return 0;
 }