drm/i915: invert the log inside intel_prepare_ddi
authorPaulo Zanoni <paulo.r.zanoni@intel.com>
Fri, 23 Nov 2012 18:46:41 +0000 (16:46 -0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 29 Nov 2012 13:59:12 +0000 (14:59 +0100)
commit0d536cb4e911c2496073f268e9730a9badaafa55
treeca6e48249cee2e453984ea785cf773b9ee6750aa
parentaffa935440733a79c5a9eb0e5357e2564ca4b355
drm/i915: invert the log inside intel_prepare_ddi

Do an early return in case we don't have DDI instead of having the
whole function inside an "if" statement.

Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Reviewed-by: Imre Deak <imre.deak@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_ddi.c