]> git.baikalelectronics.ru Git - kernel.git/commitdiff
drm/amd/display: Clean up some inconsistent indenting
authorJiapeng Chong <jiapeng.chong@linux.alibaba.com>
Tue, 26 Jul 2022 07:25:47 +0000 (15:25 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 28 Jul 2022 20:05:15 +0000 (16:05 -0400)
No functional modification involved.

smatch warning:

drivers/gpu/drm/amd/amdgpu/../display/dc/dcn20/dcn20_dwb.c:104 dwb2_enable() warn: inconsistent indenting.

Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dwb.c

index 8d3884b306dd9d6c7d01a1709ce181e8cd535cb0..f1490e97b6ce6fb6c8cee90bb4782cea262453e8 100644 (file)
@@ -101,8 +101,8 @@ static bool dwb2_enable(struct dwbc *dwbc, struct dc_dwb_params *params)
        struct dcn20_dwbc *dwbc20 = TO_DCN20_DWBC(dwbc);
 
        /* Only chroma scaling (sub-sampling) is supported in DCN2 */
-if ((params->cnv_params.src_width  != params->dest_width) ||
-               (params->cnv_params.src_height != params->dest_height)) {
+       if ((params->cnv_params.src_width  != params->dest_width) ||
+           (params->cnv_params.src_height != params->dest_height)) {
 
                DC_LOG_DWB("%s inst = %d, FAILED!LUMA SCALING NOT SUPPORTED", __func__, dwbc20->base.inst);
                return false;