]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu/display: fix indentation in defer_delay_converter_wa()
authorAlex Deucher <alexander.deucher@amd.com>
Mon, 26 Oct 2020 17:42:12 +0000 (13:42 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 30 Oct 2020 04:56:53 +0000 (00:56 -0400)
commit3d88418cd34b775d600f34d3b28935ac3e7f5b37
tree8c871fb77b7b870e902b1b41783698c895e5fff0
parentad39bfdb667430d3e406c94b52805027b20444f9
drm/amdgpu/display: fix indentation in defer_delay_converter_wa()

Fixes this warning:
drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_link_ddc.c: In function ‘defer_delay_converter_wa’:
drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_link_ddc.c:285:2: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
  285 |  if (link->dpcd_caps.branch_dev_id == DP_BRANCH_DEVICE_ID_0080E1 &&
      |  ^~
drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_link_ddc.c:291:3: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
  291 |   if (link->dpcd_caps.branch_dev_id == DP_BRANCH_DEVICE_ID_006037 &&
      |   ^~

Reviewed-by: Evan Quan <evan.quan@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc_link_ddc.c