From 53584fa32f18eafa1f71be511f20d388550b918b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ky=C3=B6sti=20M=C3=A4lkki?= 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/supermicro/h8qgi/get_bus_conf.c | 13 +------------ src/mainboard/supermicro/h8qgi/mptable.c | 1 - 2 files changed, 1 insertion(+), 13 deletions(-) (limited to 'src/mainboard/supermicro/h8qgi') diff --git a/src/mainboard/supermicro/h8qgi/get_bus_conf.c b/src/mainboard/supermicro/h8qgi/get_bus_conf.c index bce973758e..d084e4896b 100644 --- a/src/mainboard/supermicro/h8qgi/get_bus_conf.c +++ b/src/mainboard/supermicro/h8qgi/get_bus_conf.c @@ -35,7 +35,6 @@ u8 bus_sp5100[2]; u8 bus_sr5650[14]; -u32 bus_type[256]; u32 sbdn_sr5650; u32 sbdn_sp5100; @@ -43,7 +42,7 @@ u32 sbdn_sp5100; void get_bus_conf(void) { device_t dev; - int i, j; + int i; sbdn_sp5100 = 0; @@ -54,11 +53,6 @@ void get_bus_conf(void) bus_sr5650[i] = 0; } - for (i = 0; i < 256; i++) { - bus_type[i] = 0; /* default ISA bus. */ - } - - bus_type[0] = 1; /* pci */ bus_sr5650[0] = 0; bus_sp5100[0] = bus_sr5650[0]; @@ -71,8 +65,6 @@ void get_bus_conf(void) bus_isa = pci_read_config8(dev, PCI_SUBORDINATE_BUS); bus_isa++; - for (j = bus_sp5100[1]; j < bus_isa; j++) - bus_type[j] = 1; } /* sr5650 */ @@ -83,7 +75,6 @@ void get_bus_conf(void) if(255 != bus_sr5650[i]) { bus_isa = pci_read_config8(dev, PCI_SUBORDINATE_BUS); bus_isa++; - bus_type[bus_sr5650[i]] = 1; /* PCI bus. */ } } } @@ -97,8 +88,6 @@ void get_bus_conf(void) bus_isa++; } } - for (j = bus_sp5100[2]; j < bus_isa; j++) - bus_type[j] = 1; */ diff --git a/src/mainboard/supermicro/h8qgi/mptable.c b/src/mainboard/supermicro/h8qgi/mptable.c index 2206b584d8..8b36bc79fb 100644 --- a/src/mainboard/supermicro/h8qgi/mptable.c +++ b/src/mainboard/supermicro/h8qgi/mptable.c @@ -30,7 +30,6 @@ extern u8 bus_sr5650[14]; extern u8 bus_sp5100[2]; -extern u32 bus_type[256]; extern u32 sbdn_sr5650; extern u32 sbdn_sp5100; extern int bus_isa; -- cgit v1.2.3