Commit 1418b9c3 authored by Jiapeng Chong's avatar Jiapeng Chong Committed by Alex Deucher

drm/amd/pm: remove useless if

Clean the following coccicheck warning:

./drivers/gpu/drm/amd/pm/legacy-dpm/si_dpm.c:7035:2-4: WARNING: possible
condition with no effect (if == else).
Reported-by: default avatarAbaci Robot <abaci@linux.alibaba.com>
Signed-off-by: default avatarJiapeng Chong <jiapeng.chong@linux.alibaba.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent dfced44f
...@@ -7032,10 +7032,7 @@ static int si_power_control_set_level(struct amdgpu_device *adev) ...@@ -7032,10 +7032,7 @@ static int si_power_control_set_level(struct amdgpu_device *adev)
ret = si_resume_smc(adev); ret = si_resume_smc(adev);
if (ret) if (ret)
return ret; return ret;
ret = si_set_sw_state(adev); return si_set_sw_state(adev);
if (ret)
return ret;
return 0;
} }
static void si_set_vce_clock(struct amdgpu_device *adev, static void si_set_vce_clock(struct amdgpu_device *adev,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment