[PATCH 16/17] FRV: Fix uninitialised variable in serverworks driver

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The attached patch fixes an uninitialised variable warning in the serverworks
driver.

Signed-Off-By: David Howells <[email protected]>
---
warthog>diffstat -p1 serverworks-2615.diff
 drivers/ide/pci/serverworks.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -uNrp /warthog/kernels/linux-2.6.15/drivers/ide/pci/serverworks.c linux-2.6.15-frv/drivers/ide/pci/serverworks.c
--- /warthog/kernels/linux-2.6.15/drivers/ide/pci/serverworks.c	2005-08-30 13:56:16.000000000 +0100
+++ linux-2.6.15-frv/drivers/ide/pci/serverworks.c	2006-01-06 14:43:43.000000000 +0000
@@ -69,7 +69,7 @@ static int check_in_drive_lists (ide_dri
 static u8 svwks_ratemask (ide_drive_t *drive)
 {
 	struct pci_dev *dev     = HWIF(drive)->pci_dev;
-	u8 mode;
+	u8 mode = 0;
 
 	if (!svwks_revision)
 		pci_read_config_byte(dev, PCI_REVISION_ID, &svwks_revision);
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux