Re: [PATCH 1/8] drm: add drm_property_change_is_valid

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

[Index of Archives]     [Linux DRI Users]     [Linux Intel Graphics]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux