From: Eugeni Dodonov Date: Wed, 9 May 2012 18:37:12 +0000 (-0300) Subject: drm/i915: properly check for pipe count X-Git-Tag: v3.5-rc1~100^2~25^2~31 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5826eca5ac58469a704984bceaebfda5bcb383db;p=pandora-kernel.git 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 CC: Chris Wilson Reviewed-by: Jesse Barnes Signed-off-by: Eugeni Dodonov Signed-off-by: Daniel Vetter --- Reading git-diff-tree failed