Commit bcdc354a authored by Lucas Stach's avatar Lucas Stach Committed by Heiko Stuebner
Browse files

drm/rockchip: vop: remove redundant condition check



Instead of checking the same thing twice in a row, fold the second
condition into the first clause.

Signed-off-by: default avatarLucas Stach <l.stach@pengutronix.de>
Reviewed-by: default avatarAndy Yan <andyshrk@163.com>
Signed-off-by: default avatarHeiko Stuebner <heiko@sntech.de>
Link: https://lore.kernel.org/r/20250207182247.215537-1-l.stach@pengutronix.de
parent e8bf4a1b
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -733,11 +733,10 @@ static void vop_crtc_atomic_disable(struct drm_crtc *crtc,

	WARN_ON(vop->event);

	if (crtc->state->self_refresh_active)
	if (crtc->state->self_refresh_active) {
		rockchip_drm_set_win_enabled(crtc, false);

	if (crtc->state->self_refresh_active)
		goto out;
	}

	mutex_lock(&vop->vop_lock);