Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp971181iob; Thu, 12 May 2022 08:28:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzpTGEad7+AN3uc21n5/prcWaAAmGj6CqF6WKQgx2QplFcuj5lJK1JKolQtrjc0p1NkSV5b X-Received: by 2002:a17:903:182:b0:15e:8de0:2859 with SMTP id z2-20020a170903018200b0015e8de02859mr477356plg.124.1652369283779; Thu, 12 May 2022 08:28:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652369283; cv=none; d=google.com; s=arc-20160816; b=aRX5y2bObuh5EnWg7pV3vRLZufHnt04xrghkw13Cxdok3KBjtNalzMCmBzHYJDlCJm G9n9kDA43pf5U1edxJkNHEXhY7YonaI/0wh8sRZVjueh+v0FBOzfGqs6GVZfwlJdjmp0 ZRwIieT5u9c1uKStSEtI6c5uli4PKqv+AeisgZ6xDUHa/8coaBWmOw6+apWUt0Lmb/qf PS5XKbzTHj3jsKZ1BHHI+p6SAglAV86iMzFGz8r0Jx+6y/yBFgh+v/ZR9OodxX2IRYo/ iIdSx2xbiYAcON8Ql+p+Csfuo5q7lzPZVYVYxb4oNk6EalrYuKnfxu2YIeYNuFhLq/pF Trsg== 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 :message-id:date:subject:cc:to:from; bh=a6abFrtgfpBuvtSgQltBBFCeN6A/Hjtffhm7OyG1BtM=; b=fANQm5axgTJ3wwo8ilkw7w6EXG+5XgsA8znUd5x6zwfvsJH8puRNKznvCMXRW+C5y9 eKJIShnlM9PLmF6rLWk+zDxIubz7DFB/KSdE9mTAOTNQWxaP8ibZNPQa6Y2w8vmx89cW YgA+DFEF7Y5SSJZyDPP4F3kuPdNcr1HUAVtBi9PNegZ+mrZQU/6H6huzkI8kuzApiVPa 7Gjn1YPfnd5CK+g47ZtW9PinxNknehECM6oH4bSjSafIVFICWzd9n8wRKLWU7oldJyj5 b2v2qFulv6WjusLIYBWG0PlXYWoxhvuRKAL3y4VkQCQ4TDlpQss+Dpd55wtZsN3E2cnj p28g== 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 q1-20020a632a01000000b0039890725054si3787731pgq.711.2022.05.12.08.27.51; Thu, 12 May 2022 08:28:03 -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 S1350897AbiELHTw (ORCPT + 99 others); Thu, 12 May 2022 03:19:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42520 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350880AbiELHTr (ORCPT ); Thu, 12 May 2022 03:19:47 -0400 Received: from out30-132.freemail.mail.aliyun.com (out30-132.freemail.mail.aliyun.com [115.124.30.132]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 21AD1C5E64 for ; Thu, 12 May 2022 00:19:44 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R201e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04426;MF=jiapeng.chong@linux.alibaba.com;NM=1;PH=DS;RN=10;SR=0;TI=SMTPD_---0VCzsZQ9_1652339976; Received: from localhost(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0VCzsZQ9_1652339976) by smtp.aliyun-inc.com(127.0.0.1); Thu, 12 May 2022 15:19:41 +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] drm/amd/display: clean up some inconsistent indenting Date: Thu, 12 May 2022 15:19:34 +0800 Message-Id: <20220512071934.119922-1-jiapeng.chong@linux.alibaba.com> X-Mailer: git-send-email 2.20.1.7.g153144c 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,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,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 Eliminate the follow smatch warning: drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:9687 amdgpu_dm_atomic_commit_tail() warn: inconsistent indenting. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c index e2b57cf6506c..a92cfb055c15 100644 --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c @@ -9681,9 +9681,10 @@ static void amdgpu_dm_atomic_commit_tail(struct drm_atomic_state *state) dm_enable_per_frame_crtc_master_sync(dc_state); mutex_lock(&dm->dc_lock); WARN_ON(!dc_commit_state(dm->dc, dc_state)); - /* Allow idle optimization when vblank count is 0 for display off */ - if (dm->active_vblank_irq_count == 0) - dc_allow_idle_optimizations(dm->dc,true); + + /* Allow idle optimization when vblank count is 0 for display off */ + if (dm->active_vblank_irq_count == 0) + dc_allow_idle_optimizations(dm->dc, true); mutex_unlock(&dm->dc_lock); } -- 2.20.1.7.g153144c