drm/vc4: crtc: Use local chan variable
authorMaxime Ripard <maxime@cerno.tech>
Tue, 14 Jan 2020 12:37:27 +0000 (13:37 +0100)
committerpopcornmix <popcornmix@gmail.com>
Wed, 1 Jul 2020 15:33:37 +0000 (16:33 +0100)
The vc4_crtc_handle_page_flip already has a local variable holding the
value of vc4_crtc->channel, so let's use it instead.

Signed-off-by: Maxime Ripard <maxime@cerno.tech>
drivers/gpu/drm/vc4/vc4_crtc.c

index 8267e38..2e1aee1 100644 (file)
@@ -816,7 +816,7 @@ static void vc4_crtc_handle_page_flip(struct vc4_crtc *vc4_crtc)
                 * underruns. This can be seen when reconfiguring the CRTC.
                 */
                if (vc4->hvs)
-                       vc4_hvs_unmask_underrun(dev, vc4_crtc->channel);
+                       vc4_hvs_unmask_underrun(dev, chan);
        }
        spin_unlock_irqrestore(&dev->event_lock, flags);
 }