[libata] sata_via: kill uninit'd var warning
authorJeff Garzik <jeff@garzik.org>
Mon, 13 Apr 2009 08:09:34 +0000 (04:09 -0400)
committerJeff Garzik <jgarzik@redhat.com>
Mon, 13 Apr 2009 08:09:34 +0000 (04:09 -0400)
Reported and initial patch by Marin Mitov.

Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
drivers/ata/sata_via.c

index 98e8c50..bdd43c7 100644 (file)
@@ -566,7 +566,7 @@ static int svia_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
        static int printed_version;
        unsigned int i;
        int rc;
-       struct ata_host *host;
+       struct ata_host *host = NULL;
        int board_id = (int) ent->driver_data;
        const unsigned *bar_sizes;