drm/rockchip: vop2: Drop unnecessary if_pixclk_rate computation
authorCristian Ciocaltea <cristian.ciocaltea@collabora.com>
Tue, 4 Feb 2025 12:40:05 +0000 (14:40 +0200)
committerHeiko Stuebner <heiko@sntech.de>
Thu, 6 Feb 2025 10:57:53 +0000 (11:57 +0100)
The if_pixclk_rate variable is not being used outside of the if-block in
rk3588_calc_cru_cfg(), hence move the superfluous assignment from the
first branch to the inner comment-block.

Signed-off-by: Cristian Ciocaltea <cristian.ciocaltea@collabora.com>
Tested-by: FUKAUMI Naoki <naoki@radxa.com>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20250204-vop2-hdmi0-disp-modes-v3-2-d71c6a196e58@collabora.com
drivers/gpu/drm/rockchip/rockchip_drm_vop2.c

index 17a9884..2455d4a 100644 (file)
@@ -1905,8 +1905,8 @@ static unsigned long rk3588_calc_cru_cfg(struct vop2_video_port *vp, int id,
                        K = 2;
                }
 
-               if_pixclk_rate = (dclk_core_rate << 1) / K;
                /*
+                * if_pixclk_rate = (dclk_core_rate << 1) / K;
                 * if_dclk_rate = dclk_core_rate / K;
                 * *if_pixclk_div = dclk_rate / if_pixclk_rate;
                 * *if_dclk_div = dclk_rate / if_dclk_rate;