On Thu, Mar 29, 2012 at 18:27, Paulo Zanoni <przan...@gmail.com> 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.dodo...@intel.com> -- Eugeni Dodonov <http://eugeni.dodonov.net/>
_______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/dri-devel