summaryrefslogtreecommitdiffstats
path: root/drivers/ata
diff options
context:
space:
mode:
authorJeff Garzik <jeff@garzik.org>2009-04-13 10:09:34 +0200
committerJeff Garzik <jgarzik@redhat.com>2009-04-13 10:09:34 +0200
commitf1c22943e92473903288ccab23debc9993c3a560 (patch)
tree24a3954198f58266045cd43ebf5c8b548f06df3b /drivers/ata
parentRevert "ACPI battery: fix async boot oops" (diff)
downloadlinux-f1c22943e92473903288ccab23debc9993c3a560.tar.xz
linux-f1c22943e92473903288ccab23debc9993c3a560.zip
[libata] sata_via: kill uninit'd var warning
Reported and initial patch by Marin Mitov. Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Diffstat (limited to 'drivers/ata')
-rw-r--r--drivers/ata/sata_via.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ata/sata_via.c b/drivers/ata/sata_via.c
index 98e8c50703b3..bdd43c7f432e 100644
--- a/drivers/ata/sata_via.c
+++ b/drivers/ata/sata_via.c
@@ -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;