From 53584fa32f18eafa1f71be511f20d388550b918b Mon Sep 17 00:00:00 2001 From: Kyösti Mälkki Date: Tue, 15 Jul 2014 14:38:51 +0300 Subject: AMD get_bus_conf(): Drop bus_type array MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Only ever used as lvalue, so no point creating the array. Change-Id: I6699dfae9377a895e9bc4a52579d00ddcfa60a9f Signed-off-by: Kyösti Mälkki Reviewed-on: http://review.coreboot.org/6277 Tested-by: build bot (Jenkins) Reviewed-by: Edward O'Callaghan Reviewed-by: Rudolf Marek --- src/mainboard/amd/dinar/get_bus_conf.c | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) (limited to 'src/mainboard/amd/dinar/get_bus_conf.c') diff --git a/src/mainboard/amd/dinar/get_bus_conf.c b/src/mainboard/amd/dinar/get_bus_conf.c index d62e111d6c..fcd4684c5d 100644 --- a/src/mainboard/amd/dinar/get_bus_conf.c +++ b/src/mainboard/amd/dinar/get_bus_conf.c @@ -51,15 +51,13 @@ u32 hcdnx[] = { 0x20202020, }; -u32 bus_type[256]; - u32 sbdn_sb700; u32 sbdn_rd890; void get_bus_conf(void) { device_t dev; - int i, j; + int i; printk(BIOS_DEBUG, "Mainboard - Get_bus_conf.c - get_bus_conf - Start.\n"); @@ -72,12 +70,6 @@ void get_bus_conf(void) bus_rd890[i] = 0; } - for (i = 0; i < 256; i++) { - bus_type[i] = 0; /* default ISA bus. */ - } - - - bus_type[0] = 1; /* pci */ bus_rd890[0] = (pci1234x[0] >> 16) & 0xff; bus_sb700[0] = bus_rd890[0]; @@ -92,8 +84,6 @@ void get_bus_conf(void) bus_isa = pci_read_config8(dev, PCI_SUBORDINATE_BUS); bus_isa++; - for (j = bus_sb700[1]; j < bus_isa; j++) - bus_type[j] = 1; } /* rd890 */ @@ -104,7 +94,6 @@ void get_bus_conf(void) if(255 != bus_rd890[i]) { bus_isa = pci_read_config8(dev, PCI_SUBORDINATE_BUS); bus_isa++; - bus_type[bus_rd890[i]] = 1; /* PCI bus. */ } } } -- cgit v1.2.3