Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+0 −6
Original line number Diff line number Diff line
@@ -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++)