From 2a87ac64030da0f445dd285a09bbfe44893c4a7a Mon Sep 17 00:00:00 2001 From: Stefan Reinauer Date: Wed, 28 Oct 2009 14:57:14 +0000 Subject: 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 Acked-by: Stefan Reinauer git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4876 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- src/devices/device.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src') 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 -- cgit v1.2.3