<div class="gmail_quote">On Thu, Mar 29, 2012 at 18:27, Paulo Zanoni <span dir="ltr"><<a href="mailto:przanoni@gmail.com">przanoni@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
+ if (property->flags & DRM_MODE_PROP_RANGE) {<br>
+ if (value < property->values[0])<br>
+ return false;<br>
+ if (value > property->values[1])<br>
+ return false;<br></blockquote><div><br></div><div>Those two checks could probably be combined into one (< values || > values) for further simplification.</div><div><br></div><div>But other than this,</div>
<div>Reviewed-by: Eugeni Dodonov <<a href="mailto:eugein.dodonov@intel.com">eugein.dodonov@intel.com</a>></div></div><div><br></div>-- <br>Eugeni Dodonov<a href="http://eugeni.dodonov.net/" target="_blank"><br></a><br>