diff options
author | David Howells <dhowells@redhat.com> | 2006-01-08 04:01:26 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-01-08 23:13:38 -0500 |
commit | 6d524aed1f50b2b1d5b4ad5a4e2fe3f38106d0a6 (patch) | |
tree | 8b7e5fda1475286379e4cb4b18dc9fdad87888ca /drivers/ide | |
parent | 2087ff3ec56eba9bccd3b3a9d4d42670b1543f5d (diff) |
[PATCH] frv: fix uninitialised variable in serverworks driver
Fix an uninitialised variable warning in the serverworks driver.
Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/ide')
-rw-r--r-- | drivers/ide/pci/serverworks.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ide/pci/serverworks.c b/drivers/ide/pci/serverworks.c index ff2e217a8c84..0d3073f4eab4 100644 --- a/drivers/ide/pci/serverworks.c +++ b/drivers/ide/pci/serverworks.c | |||
@@ -69,7 +69,7 @@ static int check_in_drive_lists (ide_drive_t *drive, const char **list) | |||
69 | static u8 svwks_ratemask (ide_drive_t *drive) | 69 | static u8 svwks_ratemask (ide_drive_t *drive) |
70 | { | 70 | { |
71 | struct pci_dev *dev = HWIF(drive)->pci_dev; | 71 | struct pci_dev *dev = HWIF(drive)->pci_dev; |
72 | u8 mode; | 72 | u8 mode = 0; |
73 | 73 | ||
74 | if (!svwks_revision) | 74 | if (!svwks_revision) |
75 | pci_read_config_byte(dev, PCI_REVISION_ID, &svwks_revision); | 75 | pci_read_config_byte(dev, PCI_REVISION_ID, &svwks_revision); |