dect
/
linux-2.6
Archived
13
0
Fork 0

[PATCH] sata_sis: uninitialized variable

There is an uninitialized variable issue in sata_sis.c
Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
This commit is contained in:
Uwe Koziolek 2005-09-11 17:03:35 +02:00 committed by Jeff Garzik
parent 39eb936c7e
commit 668e4bc722
1 changed files with 1 additions and 1 deletions

View File

@ -161,7 +161,7 @@ static u32 sis_scr_cfg_read (struct ata_port *ap, unsigned int sc_reg)
{
struct pci_dev *pdev = to_pci_dev(ap->host_set->dev);
unsigned int cfg_addr = get_scr_cfg_addr(ap->port_no, sc_reg, pdev->device);
u32 val, val2;
u32 val, val2 = 0;
u8 pmr;
if (sc_reg == SCR_ERROR) /* doesn't exist in PCI cfg space */