drm/vc4: hdmi: Simplify exit path of vc4_hdmi_encoder_pre_crtc_configure
authorMaxime Ripard <maxime@cerno.tech>
Tue, 14 Sep 2021 13:25:33 +0000 (15:25 +0200)
committerPhil Elwell <8911409+pelwell@users.noreply.github.com>
Tue, 14 Sep 2021 13:52:01 +0000 (14:52 +0100)
commitc5def0766084c8fce65a90205fcb61f976b74cf1
tree3779b3bbd504d75b5825c319527e9be397eebad7
parentf8d389e25fb233dd692f2a3fbcf6133c0e31bc4b
drm/vc4: hdmi: Simplify exit path of vc4_hdmi_encoder_pre_crtc_configure

The exit path of vc4_hdmi_encoder_pre_crtc_configure() is fairly hard to
maintain given its numerous error conditions.

Switch to a goto based approach to simplify it.

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