From 6e2357676fb9ccf202ac3dbc66c83a040f061a4e Mon Sep 17 00:00:00 2001 From: Myles Watson Date: Tue, 29 Sep 2009 14:56:15 +0000 Subject: Remove some warnings. Signed-off-by: Myles Watson Acked-by: Stefan Reinauer git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4686 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- src/devices/hypertransport.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/devices') 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; -- cgit v1.2.3