Received: by 2002:ac0:e34a:0:0:0:0:0 with SMTP id g10csp490574imn; Tue, 26 Jul 2022 01:00:47 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vLm6FdNVGwBJ4O87/DgroB5cr2wE3BqDJoyiSFuGjEGRs5KIsyfpBgnP76KJ84lPACpdWE X-Received: by 2002:a17:902:6901:b0:168:9bb4:7adb with SMTP id j1-20020a170902690100b001689bb47adbmr15761709plk.147.1658822447563; Tue, 26 Jul 2022 01:00:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658822447; cv=none; d=google.com; s=arc-20160816; b=STvAZlBmtKLoizzLhfFJQK4HiT/fpTbgKMVAHLg0IzN3l/sS0OSB0zB58Q7Dw51Lu+ Ety46zYA9B4etvR4mcEAS5gm2v8mYL7Mb5imuOro03A+4CE3ufSv/9RdJ7HNNhHkbbuy MNNJfkHXprubgMR3yqEF+AgbyY0xZLNMAPFgY+UcdkA4wUH8ek1/AJ8QWPXBXWw9j2wR 1mjX5LkW59o0Fctce7XRRfQ7zgcQnrMAus+DEWB4eA+F/JHoQ5XL7StZtS0h0KZYna3G zZBbY0MrJolBPFisCP37Uiwy9QD1cZ0jPvtekwYKefokKGobK9bvjc99U4mkYoLUCC7k 4QXw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=YLpwLEOxdP2ZD0escd+wIJ5OuLiL8WaKOXpq8CRaGmc=; b=DJGfceTGXUxqZ3pZFDzmpbcou7aOg0G16D3cZ5Ok4bYDVdgNuI0ggW2JLO3KDuscNb 3TsJcuU//EqijDjohd98UnR8mLhmvG0xIU3+Zo8hpcEMdOahrbM61g8dg9bsdBQiG7dM 6CPkryH/AnO8q0zOAqTDFcbxKhIvLSOoSRrdOAzV2FjvcMZFkW9KlzueG9yP+sxIeNHn c2l8RpNW+4pmBgTnvYH5QnyhDXAAnFu6Uj1bAM3cT4ULFO6CiJxrUD+vcOPLbwOt2dJX jH5iq2iGzcyXnLHUyWlSXFCjmboaRZ1oe71mcmFz/0y4W6SiZAOB3Addc73gI1D7v2LW eRSQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t190-20020a632dc7000000b0041a604d4c4fsi17988695pgt.413.2022.07.26.01.00.30; Tue, 26 Jul 2022 01:00:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237807AbiGZHcx (ORCPT + 99 others); Tue, 26 Jul 2022 03:32:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41706 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238239AbiGZHbv (ORCPT ); Tue, 26 Jul 2022 03:31:51 -0400 Received: from out199-8.us.a.mail.aliyun.com (out199-8.us.a.mail.aliyun.com [47.90.199.8]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 888B110FCB for ; Tue, 26 Jul 2022 00:27:55 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R161e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046050;MF=jiapeng.chong@linux.alibaba.com;NM=1;PH=DS;RN=10;SR=0;TI=SMTPD_---0VKUJQq0_1658820441; Received: from localhost(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0VKUJQq0_1658820441) by smtp.aliyun-inc.com; Tue, 26 Jul 2022 15:27:23 +0800 From: Jiapeng Chong To: alexander.deucher@amd.com Cc: christian.koenig@amd.com, Xinhui.Pan@amd.com, airlied@linux.ie, daniel@ffwll.ch, amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Jiapeng Chong , Abaci Robot Subject: [PATCH 15/20] drm/amd/display: Clean up some inconsistent indenting Date: Tue, 26 Jul 2022 15:25:50 +0800 Message-Id: <20220726072555.91323-15-jiapeng.chong@linux.alibaba.com> X-Mailer: git-send-email 2.20.1.7.g153144c In-Reply-To: <20220726072555.91323-1-jiapeng.chong@linux.alibaba.com> References: <20220726072555.91323-1-jiapeng.chong@linux.alibaba.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-9.9 required=5.0 tests=BAYES_00, ENV_AND_HDR_SPF_MATCH,SPF_HELO_NONE,SPF_PASS,UNPARSEABLE_RELAY, USER_IN_DEF_SPF_WL autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org No functional modification involved. smatch warning: drivers/gpu/drm/amd/amdgpu/../display/dc/dcn20/dcn20_hwseq.c:1728 dcn20_program_front_end_for_ctx() warn: inconsistent indenting. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- .../gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c b/drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c index 3b26962637d0..68690e2118cb 100644 --- a/drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c +++ b/drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c @@ -1715,15 +1715,13 @@ void dcn20_program_front_end_for_ctx( DC_LOGGER_INIT(dc->ctx->logger); /* Carry over GSL groups in case the context is changing. */ - for (i = 0; i < dc->res_pool->pipe_count; i++) { - struct pipe_ctx *pipe_ctx = &context->res_ctx.pipe_ctx[i]; - struct pipe_ctx *old_pipe_ctx = - &dc->current_state->res_ctx.pipe_ctx[i]; - - if (pipe_ctx->stream == old_pipe_ctx->stream) - pipe_ctx->stream_res.gsl_group = - old_pipe_ctx->stream_res.gsl_group; - } + for (i = 0; i < dc->res_pool->pipe_count; i++) { + struct pipe_ctx *pipe_ctx = &context->res_ctx.pipe_ctx[i]; + struct pipe_ctx *old_pipe_ctx = &dc->current_state->res_ctx.pipe_ctx[i]; + + if (pipe_ctx->stream == old_pipe_ctx->stream) + pipe_ctx->stream_res.gsl_group = old_pipe_ctx->stream_res.gsl_group; + } if (dc->hwss.program_triplebuffer != NULL && dc->debug.enable_tri_buf) { for (i = 0; i < dc->res_pool->pipe_count; i++) { -- 2.20.1.7.g153144c