diff options
author | Patrick Georgi <pgeorgi@chromium.org> | 2016-08-01 13:30:02 +0200 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2016-08-02 14:02:51 +0200 |
commit | 47f7b0e196baa5b21820e8b7f91af18459e27813 (patch) | |
tree | 5421901bc8987a7cd8b14ae84e105b152c628b20 /src/northbridge/amd/amdfam10/misc_control.c | |
parent | 8c8403ff5f7bab0f6e5c4ccc20e5be0afbca569b (diff) | |
download | coreboot-47f7b0e196baa5b21820e8b7f91af18459e27813.tar.xz |
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/northbridge/amd/amdfam10/misc_control.c')
-rw-r--r-- | src/northbridge/amd/amdfam10/misc_control.c | 2 |
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 */ |