diff options
author | Stefan Reinauer <stepan@coresystems.de> | 2009-10-28 14:57:14 +0000 |
---|---|---|
committer | Stefan Reinauer <stepan@openbios.org> | 2009-10-28 14:57:14 +0000 |
commit | 2a87ac64030da0f445dd285a09bbfe44893c4a7a (patch) | |
tree | e51cab09b67318b9ff29428a6d40a78815296579 | |
parent | 7782319c21b0011aac316a7da945dd0e6efa5933 (diff) | |
download | coreboot-2a87ac64030da0f445dd285a09bbfe44893c4a7a.tar.xz |
The check for zero sized resources is already done earlier. So don't redo it
here. I think we don't ever want to drop the extra check, since it indicates
that the components involved need fixing.
Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Stefan Reinauer <stepan@coresystems.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4876 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
-rw-r--r-- | src/devices/device.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/devices/device.c b/src/devices/device.c index 2323850ae6..9ce58c52c9 100644 --- a/src/devices/device.c +++ b/src/devices/device.c @@ -576,8 +576,7 @@ static void constrain_resources(struct device *dev, struct constraints* limits) continue; /* Is it already outside the limits? */ - if (res->size && (((res->base + res->size -1) < lim->base) || - (res->base > lim->limit))) + if (((res->base + res->size -1) < lim->base) || (res->base > lim->limit)) continue; /* Choose to be above or below fixed resources. This |