Eugeni Dodonov 5826eca5ac drm/i915: properly check for pipe count
As suggested by Chris Wilson and Daniel Vetter, this chunk of code can be
simplified with a more simple check.

Also, as noticed by Jesse Barnes, it is worth mentioning that plane is an
enum and num_pipe is an int, so we could be more paranoid here about those
validation checks eventually.

CC: Daniel Vetter <daniel.vetter@ffwll.ch>
CC: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Eugeni Dodonov <eugeni.dodonov@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-05-19 22:39:44 +02:00
..
2012-05-03 17:16:52 -07:00
2012-04-20 11:31:00 -07:00
2012-03-19 09:37:11 +00:00
2012-03-27 16:03:32 -07:00
2012-04-27 10:46:45 +08:00
2012-04-12 15:36:33 -07:00
2012-05-03 01:42:55 -04:00
2012-05-07 14:02:14 +02:00
2012-03-30 00:09:17 -07:00
2012-05-02 13:47:49 -07:00
2012-04-18 13:15:51 -07:00
2012-05-07 14:02:14 +02:00