Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/amd/display: remove redundant assignment to variable dp_ref_clk_khz

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>

authored by

Colin Ian King and committed by
Alex Deucher
5edb7691 43ad9b39

+1 -1
+1 -1
drivers/gpu/drm/amd/display/dc/clk_mgr/dce100/dce_clk_mgr.c
··· 131 131 struct clk_mgr_internal *clk_mgr = TO_CLK_MGR_INTERNAL(clk_mgr_base); 132 132 int dprefclk_wdivider; 133 133 int dprefclk_src_sel; 134 - int dp_ref_clk_khz = 600000; 134 + int dp_ref_clk_khz; 135 135 int target_div; 136 136 137 137 /* ASSERT DP Reference Clock source is from DFS*/