diff options
author | Prike Liang <Prike.Liang@amd.com> | 2020-03-10 01:20:01 +0100 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2020-03-10 20:54:56 +0100 |
commit | 7bef6ea9721bb72bfe00810b9d928062a95e8549 (patch) | |
tree | 1b111369dfda01ea425ffd902ecdffe6eca08918 /drivers | |
parent | drm/amdgpu: Correct the condition of warning while bo release (diff) | |
download | linux-7bef6ea9721bb72bfe00810b9d928062a95e8549.tar.xz linux-7bef6ea9721bb72bfe00810b9d928062a95e8549.zip |
drm/amd/powerplay: fix the coverity warning about negative check for an unsigned value
There will be a coverity warning because min and max are both unsigned.
Signed-off-by: Prike Liang <Prike.Liang@amd.com>
Reviewed-by: Evan Quan <evan.quan@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpu/drm/amd/powerplay/amdgpu_smu.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c b/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c index d454493bef14..f18e3fadbc26 100644 --- a/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c +++ b/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c @@ -214,9 +214,6 @@ int smu_set_soft_freq_range(struct smu_context *smu, enum smu_clk_type clk_type, { int ret = 0; - if (min < 0 && max < 0) - return -EINVAL; - if (!smu_clk_dpm_is_enabled(smu, clk_type)) return 0; |