On Thu, Mar 29, 2012 at 18:27, Paulo Zanoni <przanoni@xxxxxxxxx> 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 <eugein.dodonov@xxxxxxxxx>
Eugeni Dodonov
_______________________________________________ dri-devel mailing list dri-devel@xxxxxxxxxxxxxxxxxxxxx http://lists.freedesktop.org/mailman/listinfo/dri-devel