summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/devices/device.c3
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