aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/atom.c
diff options
context:
space:
mode:
authorNathan Chancellor <[email protected]>2020-03-02 22:42:17 +0000
committerAlex Deucher <[email protected]>2020-03-05 06:03:45 +0000
commit67a4addd09704f1f360ac20bee2c4eea63b3a645 (patch)
treed7c8d63ca5aafa3813cb06f656b6baa3042134f7 /drivers/gpu/drm/amd/amdgpu/atom.c
parentdrm/amdgpu/display: navi1x copy dcn watermark clock settings to smu resume fr... (diff)
downloadkernel-67a4addd09704f1f360ac20bee2c4eea63b3a645.tar.gz
kernel-67a4addd09704f1f360ac20bee2c4eea63b3a645.zip
drm/amd/display: Remove pointless NULL checks in dmub_psr_copy_settings
Clang warns: drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dmub_psr.c:147:31: warning: address of 'pipe_ctx->plane_res' will always evaluate to 'true' [-Wpointer-bool-conversion] if (!pipe_ctx || !&pipe_ctx->plane_res || !&pipe_ctx->stream_res) ~ ~~~~~~~~~~^~~~~~~~~ drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dmub_psr.c:147:56: warning: address of 'pipe_ctx->stream_res' will always evaluate to 'true' [-Wpointer-bool-conversion] if (!pipe_ctx || !&pipe_ctx->plane_res || !&pipe_ctx->stream_res) ~ ~~~~~~~~~~^~~~~~~~~~ 2 warnings generated. As long as pipe_ctx is not NULL, the address of members in this struct cannot be NULL, which means these checks will always evaluate to false. Fixes: 4c1a1335dfe0 ("drm/amd/display: Driverside changes to support PSR in DMCUB") Link: https://github.com/ClangBuiltLinux/linux/issues/915 Reviewed-by: Nick Desaulniers <[email protected]> Signed-off-by: Nathan Chancellor <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/atom.c')
0 files changed, 0 insertions, 0 deletions