From 47f7b0e196baa5b21820e8b7f91af18459e27813 Mon Sep 17 00:00:00 2001 From: Patrick Georgi Date: Mon, 1 Aug 2016 13:30:02 +0200 Subject: amd/amdfam10: eliminate dead code MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit if (gart) { foo = gart?a:b; } never evaluates to foo=b. Change-Id: Ibc7376687374065585b125a670dea5fe46bda97a Signed-off-by: Patrick Georgi Found-by: Coverity Scan #1347365 Reviewed-on: https://review.coreboot.org/16008 Tested-by: build bot (Jenkins) Reviewed-by: Omar Pakker Reviewed-by: Kyösti Mälkki Reviewed-by: Paul Menzel --- src/northbridge/amd/amdfam10/misc_control.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/northbridge') diff --git a/src/northbridge/amd/amdfam10/misc_control.c b/src/northbridge/amd/amdfam10/misc_control.c index 775af66b9d..7cd9bff694 100644 --- a/src/northbridge/amd/amdfam10/misc_control.c +++ b/src/northbridge/amd/amdfam10/misc_control.c @@ -67,7 +67,7 @@ static void mcf3_read_resources(device_t dev) if (gart) { /* Add a Gart apeture resource */ resource = new_resource(dev, 0x94); - resource->size = gart?CONFIG_AGP_APERTURE_SIZE:1; + resource->size = CONFIG_AGP_APERTURE_SIZE; resource->align = log2(resource->size); resource->gran = log2(resource->size); resource->limit = 0xffffffff; /* 4G */ -- cgit v1.2.3