diff options
| author | Tom Rix <[email protected]> | 2022-02-05 15:00:08 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2022-02-07 23:03:50 +0000 |
| commit | 6cbdf12b87356827d35975dfb3030d116782737c (patch) | |
| tree | 293eacee92453f1b34c2e7fc6e616d185ffeb73f /drivers/gpu/drm/amd/pm/inc/amdgpu_dpm.h | |
| parent | drm/amdgpu: reserve the pd while cleaning up PRTs (diff) | |
| download | kernel-6cbdf12b87356827d35975dfb3030d116782737c.tar.gz kernel-6cbdf12b87356827d35975dfb3030d116782737c.zip | |
drm/amd/pm: fix error handling
clang static analysis reports this error
amdgpu_smu.c:2289:9: warning: Called function pointer
is null (null dereference)
return smu->ppt_funcs->emit_clk_levels(
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
There is a logic error in the earlier check of
emit_clk_levels. The error value is set to
the ret variable but ret is never used. Return
directly and remove the unneeded ret variable.
Fixes: 5d64f9bbb628 ("amdgpu/pm: Implement new API function "emit" that accepts buffer base and write offset")
Reviewed-by: Evan Quan <[email protected]>
Signed-off-by: Tom Rix <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/pm/inc/amdgpu_dpm.h')
0 files changed, 0 insertions, 0 deletions
