1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/drivers/gpu/drm/amd/pm
Tom Rix 6cbdf12b87 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: 5d64f9bbb6 ("amdgpu/pm: Implement new API function "emit" that accepts buffer base and write offset")
Reviewed-by: Evan Quan <evan.quan@amd.com>
Signed-off-by: Tom Rix <trix@redhat.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2022-02-07 18:03:50 -05:00
..
inc amdgpu/pm: Implement new API function "emit" that accepts buffer base and write offset 2022-02-02 18:27:58 -05:00
legacy-dpm drm/amd/pm: remove useless if 2022-01-25 18:00:33 -05:00
powerplay drm/amd: Expose the FRU SMU I2C bus 2022-01-27 15:49:48 -05:00
swsmu drm/amd/pm: fix error handling 2022-02-07 18:03:50 -05:00
amdgpu_dpm.c amdgpu/pm: Implement new API function "emit" that accepts buffer base and write offset 2022-02-02 18:27:58 -05:00
amdgpu_dpm_internal.c drm/amd/pm: optimize the amdgpu_pm_compute_clocks() implementations 2022-01-14 17:51:14 -05:00
amdgpu_pm.c drm/amdgpu/UAPI: add new CTX OP to get/set stable pstates 2022-01-27 15:50:08 -05:00
Makefile drm/amd/pm: relocate the power related headers 2022-01-14 17:51:14 -05:00