Skip to content

Commit 7bef6ea

Browse files
Prike Liangalexdeucher
authored andcommitted
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 <[email protected]> Reviewed-by: Evan Quan <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent 9fe58d0 commit 7bef6ea

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

drivers/gpu/drm/amd/powerplay/amdgpu_smu.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -214,9 +214,6 @@ int smu_set_soft_freq_range(struct smu_context *smu, enum smu_clk_type clk_type,
214214
{
215215
int ret = 0;
216216

217-
if (min < 0 && max < 0)
218-
return -EINVAL;
219-
220217
if (!smu_clk_dpm_is_enabled(smu, clk_type))
221218
return 0;
222219

0 commit comments

Comments
 (0)