mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-22 20:23:57 +08:00
drm: fix mismerge in drm_crtc.c
Daniel merged two things in 72a3697097
,
but he merged this code twice, Dan's static checker spotted it.
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
parent
adc31849b2
commit
426959c945
@ -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++)
|
||||
|
Loading…
Reference in New Issue
Block a user