]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
drm/amd/display: remove redundant assignment to variable dp_ref_clk_khz
authorColin Ian King <colin.king@canonical.com>
Fri, 10 Apr 2020 11:46:13 +0000 (12:46 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 22 Apr 2020 22:11:45 +0000 (18:11 -0400)
The variable dp_ref_clk_khz is being initialized with a value that is
never read and it is being updated later with a new value.  The
initialization is redundant and can be removed.

Addresses-Coverity: ("Unused value")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/clk_mgr/dce100/dce_clk_mgr.c

index 26db1c5d4e4d2619dea1ba09c4d8ad2f92678cd9..b210f8e9d592d1168685725b9947e1777ada7958 100644 (file)
@@ -131,7 +131,7 @@ int dce_get_dp_ref_freq_khz(struct clk_mgr *clk_mgr_base)
        struct clk_mgr_internal *clk_mgr = TO_CLK_MGR_INTERNAL(clk_mgr_base);
        int dprefclk_wdivider;
        int dprefclk_src_sel;
-       int dp_ref_clk_khz = 600000;
+       int dp_ref_clk_khz;
        int target_div;
 
        /* ASSERT DP Reference Clock source is from DFS*/