]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
ata: fix sparse warning in sata_via.c
authorHarvey Harrison <harvey.harrison@gmail.com>
Thu, 14 Feb 2008 05:14:11 +0000 (21:14 -0800)
committerJeff Garzik <jeff@garzik.org>
Fri, 15 Feb 2008 18:51:01 +0000 (13:51 -0500)
drivers/ata/sata_via.c:336:2: warning: returning void-valued expression

Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/ata/sata_via.c

index 30caa033719039c73350fee395c30fd6f374bc24..0d03f44824fb216545dcef8a0cf52f11efb4a324 100644 (file)
@@ -333,8 +333,8 @@ static int vt6420_prereset(struct ata_link *link, unsigned long deadline)
 
 static void vt6420_error_handler(struct ata_port *ap)
 {
-       return ata_bmdma_drive_eh(ap, vt6420_prereset, ata_std_softreset,
-                                 NULL, ata_std_postreset);
+       ata_bmdma_drive_eh(ap, vt6420_prereset, ata_std_softreset, NULL,
+                          ata_std_postreset);
 }
 
 static int vt6421_pata_cable_detect(struct ata_port *ap)