aboutsummaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
diff options
context:
space:
mode:
authorNathan Chancellor <natechancellor@gmail.com>2020-02-14 13:24:39 -0500
committerAlex Deucher <alexander.deucher@amd.com>2020-02-19 10:36:26 -0500
commit5fbdb1f38d16a75d35f4111b2f0cf1220ca1ecd3 (patch)
tree2ab8af24b0a53f8af45371157b99c33ac49e8208 /drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
parentc16904b0f305c5f6bc31de118d4b1e60a5da5408 (diff)
drm/amd/display: Don't take the address of skip_scdc_overwrite in dc_link_detect_helper
Clang warns: ../drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_link.c:980:36: warning: address of 'sink->edid_caps.panel_patch.skip_scdc_overwrite' will always evaluate to 'true' [-Wpointer-bool-conversion] if (&sink->edid_caps.panel_patch.skip_scdc_overwrite) ~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ 1 warning generated. This is probably not what was intended so remove the address of operator, which matches how skip_scdc_overwrite is handled in the rest of the driver. While we're here, drop an extra newline after this if block. Fixes: a760fc1bff03 ("drm/amd/display: add monitor patch to disable SCDC read/write") Link: https://github.com/ClangBuiltLinux/linux/issues/879 Signed-off-by: Nathan Chancellor <natechancellor@gmail.com> Signed-off-by: Zhan Liu <zhan.liu@amd.com> Reviewed-by: Zhan Liu <zhan.liu@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c')
0 files changed, 0 insertions, 0 deletions