aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPatrick Georgi <pgeorgi@chromium.org>2016-08-01 13:30:02 +0200
committerPatrick Georgi <pgeorgi@google.com>2016-08-02 14:02:51 +0200
commit47f7b0e196baa5b21820e8b7f91af18459e27813 (patch)
tree5421901bc8987a7cd8b14ae84e105b152c628b20 /src
parent8c8403ff5f7bab0f6e5c4ccc20e5be0afbca569b (diff)
amd/amdfam10: eliminate dead code
if (gart) { foo = gart?a:b; } never evaluates to foo=b. Change-Id: Ibc7376687374065585b125a670dea5fe46bda97a Signed-off-by: Patrick Georgi <pgeorgi@chromium.org> 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 <kyosti.malkki@gmail.com> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Diffstat (limited to 'src')
-rw-r--r--src/northbridge/amd/amdfam10/misc_control.c2
1 files changed, 1 insertions, 1 deletions
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 */