projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
PCI: ibmphp: Fix use-before-set in get_max_bus_speed()
[linux-2.6-microblaze.git]
/
drivers
/
pci
/
hotplug
/
ibmphp_core.c
diff --git
a/drivers/pci/hotplug/ibmphp_core.c
b/drivers/pci/hotplug/ibmphp_core.c
index
b81ca3f
..
1869b04
100644
(file)
--- a/
drivers/pci/hotplug/ibmphp_core.c
+++ b/
drivers/pci/hotplug/ibmphp_core.c
@@
-379,7
+379,7
@@
static int get_adapter_present(struct hotplug_slot *hotplug_slot, u8 *value)
static int get_max_bus_speed(struct slot *slot)
{
- int rc;
+ int rc
= 0
;
u8 mode = 0;
enum pci_bus_speed speed;
struct pci_bus *bus = slot->hotplug_slot->pci_slot->bus;