summaryrefslogtreecommitdiff
path: root/src/sna/sna_damage.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2013-01-18 13:09:36 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2013-01-18 13:09:36 +0000
commite17eaf540b614cdcb8f7349dd01852c3afc5ab05 (patch)
tree70e7044f46828abe4c0bbeb1d6f37f6321768234 /src/sna/sna_damage.c
parent2de43a0164ba5364ffd7cb48f0bccc9873e87332 (diff)
sna: Replace double negative '!RegionNotEmpty' with the equivalent RegionNil
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/sna_damage.c')
-rw-r--r--src/sna/sna_damage.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/sna/sna_damage.c b/src/sna/sna_damage.c
index 73d94e1b..ab693af3 100644
--- a/src/sna/sna_damage.c
+++ b/src/sna/sna_damage.c
@@ -1034,7 +1034,7 @@ static struct sna_damage *__sna_damage_subtract(struct sna_damage *damage,
if (damage == NULL)
return NULL;
- if (!RegionNotEmpty(&damage->region)) {
+ if (RegionNil(&damage->region)) {
no_damage:
__sna_damage_destroy(damage);
return NULL;
@@ -1127,7 +1127,7 @@ inline static struct sna_damage *__sna_damage_subtract_box(struct sna_damage *da
if (damage == NULL)
return NULL;
- if (!RegionNotEmpty(&damage->region)) {
+ if (RegionNil(&damage->region)) {
__sna_damage_destroy(damage);
return NULL;
}
@@ -1199,7 +1199,7 @@ static struct sna_damage *__sna_damage_subtract_boxes(struct sna_damage *damage,
if (damage == NULL)
return NULL;
- if (!RegionNotEmpty(&damage->region)) {
+ if (RegionNil(&damage->region)) {
__sna_damage_destroy(damage);
return NULL;
}