Re: [PATCH] drm/amd/display: Remove pointless NULL checks in dmub_psr_copy_settings

2020-03-04 Thread Alex Deucher
On Mon, Mar 2, 2020 at 5:43 PM Nathan Chancellor wrote: > > 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 || !_ctx->plane_res ||

[PATCH] drm/amd/display: Remove pointless NULL checks in dmub_psr_copy_settings

2020-03-02 Thread Nathan Chancellor
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 || !_ctx->plane_res || !_ctx->stream_res) ~ ~~^