On Thu, Mar 29, 2012 at 18:27, Paulo Zanoni <[email protected]> wrote:
> + if (property->flags & DRM_MODE_PROP_RANGE) {
> + if (value < property->values[0])
> + return false;
> + if (value > property->values[1])
> + return false;
>
Those two checks could probably be combined into one (< values || > values)
for further simplification.
But other than this,
Reviewed-by: Eugeni Dodonov <[email protected]>
--
Eugeni Dodonov
<http://eugeni.dodonov.net/>
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel