mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-01 03:44:27 -04:00
drm/amd/display: Simplify dcn35_is_ips_supported()
[WHAT & HOW] The variable "ips_supported" is redundant and we can return from dcn35_smu_get_ips_supported directly. This fixes 1 UNUSED_VALUE issue reported by Coverity. Reviewed-by: Rodrigo Siqueira <rodrigo.siqueira@amd.com> Signed-off-by: Alex Hung <alex.hung@amd.com> Signed-off-by: Tom Chung <chiahsuan.chung@amd.com> Tested-by: Daniel Wheeler <daniel.wheeler@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
@@ -978,11 +978,8 @@ static void dcn35_exit_low_power_state(struct clk_mgr *clk_mgr_base)
|
||||
static bool dcn35_is_ips_supported(struct clk_mgr *clk_mgr_base)
|
||||
{
|
||||
struct clk_mgr_internal *clk_mgr = TO_CLK_MGR_INTERNAL(clk_mgr_base);
|
||||
bool ips_supported = true;
|
||||
|
||||
ips_supported = dcn35_smu_get_ips_supported(clk_mgr) ? true : false;
|
||||
|
||||
return ips_supported;
|
||||
return dcn35_smu_get_ips_supported(clk_mgr) ? true : false;
|
||||
}
|
||||
|
||||
static void dcn35_init_clocks_fpga(struct clk_mgr *clk_mgr)
|
||||
|
||||
Reference in New Issue
Block a user