summaryrefslogtreecommitdiff
path: root/src/devices/hypertransport.c
diff options
context:
space:
mode:
authorMyles Watson <mylesgw@gmail.com>2009-09-29 14:56:15 +0000
committerMyles Watson <mylesgw@gmail.com>2009-09-29 14:56:15 +0000
commit6e2357676fb9ccf202ac3dbc66c83a040f061a4e (patch)
tree3cb788b3a5c6866737ea33894ce35ebb4dd80deb /src/devices/hypertransport.c
parent5e54871375a3416c576d1d1fbdfddda2dbcc7411 (diff)
Remove some warnings.
Signed-off-by: Myles Watson <mylesgw@gmail.com> Acked-by: Stefan Reinauer <stepan@coresystems.de> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4686 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/devices/hypertransport.c')
-rw-r--r--src/devices/hypertransport.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/devices/hypertransport.c b/src/devices/hypertransport.c
index 5fb35ce88f..39c63f82fa 100644
--- a/src/devices/hypertransport.c
+++ b/src/devices/hypertransport.c
@@ -392,9 +392,9 @@ unsigned int hypertransport_scan_chain(struct bus *bus,
#if CONFIG_HT_CHAIN_END_UNITID_BASE != 0x20
//let't record the device of last ht device, So we can set the Unitid to CONFIG_HT_CHAIN_END_UNITID_BASE
- unsigned real_last_unitid;
- uint8_t real_last_pos;
- device_t real_last_dev;
+ unsigned real_last_unitid=0;
+ uint8_t real_last_pos=0;
+ device_t real_last_dev=NULL;
unsigned end_used = 0;
#endif
@@ -553,7 +553,6 @@ unsigned int hypertransport_scan_chain(struct bus *bus,
#if CONFIG_HT_CHAIN_END_UNITID_BASE != 0x20
if(offset_unitid && (ht_dev_num>1) && (real_last_unitid != CONFIG_HT_CHAIN_END_UNITID_BASE) && !end_used) {
uint16_t flags;
- int i;
device_t last_func = 0;
flags = pci_read_config16(real_last_dev, real_last_pos + PCI_CAP_FLAGS);
flags &= ~0x1f;