drm/i915: Don't hide the intel_crtc_atomic_check() call
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 25 Sep 2020 12:17:49 +0000 (15:17 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 28 Sep 2020 11:12:50 +0000 (14:12 +0300)
Move the intel_crtc_atomic_check() call out from the variable
declarations to a place where we can actually see it.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200925121749.708-2-ville.syrjala@linux.intel.com
Reviewed-by: José Roberto de Souza <jose.souza@intel.com>
drivers/gpu/drm/i915/display/intel_display.c

index 3cc9885..13a27fe 100644 (file)
@@ -14899,8 +14899,10 @@ static int intel_atomic_check_crtcs(struct intel_atomic_state *state)
        int i;
 
        for_each_new_intel_crtc_in_state(state, crtc, crtc_state, i) {
-               int ret = intel_crtc_atomic_check(state, crtc);
                struct drm_i915_private *i915 = to_i915(crtc->base.dev);
+               int ret;
+
+               ret = intel_crtc_atomic_check(state, crtc);
                if (ret) {
                        drm_dbg_atomic(&i915->drm,
                                       "[CRTC:%d:%s] atomic driver check failed\n",