aboutsummaryrefslogtreecommitdiff
path: root/backend/drm
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2018-09-04 22:49:54 +0200
committeremersion <contact@emersion.fr>2018-09-04 22:49:54 +0200
commitd605b2ea077f00dfa343e824610fad0c01232fbd (patch)
treee2c34c755ec73ffc7f505caab38bccc916710fc7 /backend/drm
parent017cfb0b860c55d262f6ecdfa5ad2ef773b16760 (diff)
backend/drm: remove unused if
Diffstat (limited to 'backend/drm')
-rw-r--r--backend/drm/util.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/backend/drm/util.c b/backend/drm/util.c
index 52972fdd..66819c96 100644
--- a/backend/drm/util.c
+++ b/backend/drm/util.c
@@ -228,9 +228,6 @@ static bool match_obj_(struct match_state *st, size_t skips, size_t score, size_
st->replaced = replaced;
memcpy(st->best, st->res, sizeof(st->best[0]) * st->num_res);
- if (st->score == st->num_objs && st->replaced == 0) {
- st->exit_early = true;
- }
st->exit_early = (st->score == st->num_res - skips
|| st->score == st->num_objs)
&& st->replaced == 0;