Commit 426959c9 authored by Dave Airlie's avatar Dave Airlie

drm: fix mismerge in drm_crtc.c

Daniel merged two things in 72a36970,
but he merged this code twice, Dan's static checker spotted it.
Reported-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
parent adc31849
......@@ -4369,12 +4369,6 @@ bool drm_property_change_valid_get(struct drm_property *property,
} else {
return _object_find(property->dev, value, property->values[0]) != NULL;
}
} else {
int i;
for (i = 0; i < property->num_values; i++)
if (property->values[i] == value)
return true;
return false;
}
for (i = 0; i < property->num_values; i++)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment