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
This commit is contained in:
parent
7782319c21
commit
2a87ac6403
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue