drm/amd/display: Fix indentation in dcn32_get_vco_frequency_from_reg()
authorNathan Chancellor <nathan@kernel.org>
Thu, 23 Jun 2022 15:30:01 +0000 (08:30 -0700)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 23 Jun 2022 21:22:41 +0000 (17:22 -0400)
commit10a9035c36d00586ad4bdb838f8800be951db8d2
tree2f6cf3ee3686a57b891adb514644d70fbc601c37
parenta957995618a8afe3efa2b5746c0a954bbd450882
drm/amd/display: Fix indentation in dcn32_get_vco_frequency_from_reg()

Clang warns:

  drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn32/dcn32_clk_mgr.c:549:4: warning: misleading indentation; statement is not part of the previous 'else' [-Wmisleading-indentation]
                          pll_req = dc_fixpt_from_int(pll_req_reg & clk_mgr->clk_mgr_mask->FbMult_int);
                          ^
  drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn32/dcn32_clk_mgr.c:542:3: note: previous statement is here
                  else
                  ^
  1 warning generated.

Indent this statement to the left, as it was clearly intended to be
called unconditionally, which will fix the warning.

Link: https://github.com/ClangBuiltLinux/linux/issues/1655
Fixes: 3e838f7ccf64 ("drm/amd/display: Get VCO frequency from registers")
Signed-off-by: Nathan Chancellor <nathan@kernel.org>
Reviewed-by: Leo Li <sunpeng.li@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn32/dcn32_clk_mgr.c