drm/i915/skl: Use a more idomatic early return
authorDamien Lespiau <damien.lespiau@intel.com>
Thu, 7 May 2015 17:38:41 +0000 (18:38 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 29 May 2015 08:15:23 +0000 (10:15 +0200)
commit9c2367538de381435503425c22c4f192c72e282e
tree9ec28dc0133a53730c10df96f3b22d80ca86a772
parent318bd821d65d37fb12c5673607e2b013f7a86a01
drm/i915/skl: Use a more idomatic early return

We can coalesce the WARN() condition with the WARN() itself and, as we
are returning early, we can de-intent the rest of the function.

Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
Reviewed-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_ddi.c