Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp933496iob; Wed, 4 May 2022 10:59:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzt7lF1/HRB8Y1N3dVX/XHAo3Svxs1/kizQaETgFqF8baL8Q2/2/aDLUfkjEZXWgssMdZNZ X-Received: by 2002:a17:902:f549:b0:15e:aa35:425a with SMTP id h9-20020a170902f54900b0015eaa35425amr14472531plf.1.1651687142381; Wed, 04 May 2022 10:59:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651687142; cv=none; d=google.com; s=arc-20160816; b=DeYpHVmB02gHDE6H1L5FQpDYAChEhEJGR5/g+v4swJoAO7ngvkrg9cGGvMvAWk8pd9 ySdXxYT3w6QdKQ/VNSYYYniVhg+5ox9/0qsMjKao2nx0LdVvpF5msMOOlGG8NQKgiDVo Gnuj6FSJjlfG0f+aBoPT184I0iuJgN4QfLQDAlLFAJj+vpiURKI+4HKxx1zuk3bt1YIy 8X59We+aO6ZBu6eTOetkIOV59G2VFYoAiGcAeXaDp3HpD634Kn0jg0OKeNEEXjqABzBY c6WbfjCdkc32pBnEPLQnJN6aWfmXsyi4nEj1RueU0tRqw37LrhgDjvHKL5gMdNSLgluX VDrQ== 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=clJeUv7x7hU1dRPdSTd4oYlaYlZI3gAbykHWoHUlXdw=; b=UZvhjwDV1rtwiKNR9z5klS14rLkxjpSNzZv0mU/gmXX/CVfTg7CMdMuG15OMiT+ijC o1LFweMDiytDEFZAsOe9+FhtwILPKxw21H7I4fwTr8B34atm60u4sZ2f6nHnvI3YpJu7 aVfe7ttyhWNgLG7SLBZjwEra77gUSHBndr758rWoPH5ZnJcWiQE6Cn6hp5kZtn9PxTiQ SUjeymRP0HKw6YKxhd5+hEyqGua/0bhntRnxW8vDwKNh8w07tLMS0KANyrKXzVhIfXsL 5iRVt5/WAnOv9093gKfPRoGU/kjjsycOxGcdsyp4Sk3gxy0AzqcMfaYMSXGgFXAduMT7 aK6g== 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 d17-20020aa78691000000b0050d5fed6283si19005584pfo.161.2022.05.04.10.58.45; Wed, 04 May 2022 10:59:02 -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 S1350800AbiEDNtW (ORCPT + 99 others); Wed, 4 May 2022 09:49:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37110 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350790AbiEDNs6 (ORCPT ); Wed, 4 May 2022 09:48:58 -0400 Received: from out30-133.freemail.mail.aliyun.com (out30-133.freemail.mail.aliyun.com [115.124.30.133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 25408559E; Wed, 4 May 2022 06:45:18 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R181e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04395;MF=yang.lee@linux.alibaba.com;NM=1;PH=DS;RN=8;SR=0;TI=SMTPD_---0VCBzW9x_1651671915; Received: from localhost(mailfrom:yang.lee@linux.alibaba.com fp:SMTPD_---0VCBzW9x_1651671915) by smtp.aliyun-inc.com(127.0.0.1); Wed, 04 May 2022 21:45:16 +0800 From: Yang Li To: deller@gmx.de Cc: adaplas@gmail.com, thomas@winischhofer.net, linux-fbdev@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Yang Li , Abaci Robot Subject: [PATCH -next] video: fbdev: clean up some inconsistent indenting Date: Wed, 4 May 2022 21:45:14 +0800 Message-Id: <20220504134514.19623-1-yang.lee@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 warnings: drivers/video/fbdev/nvidia/nv_hw.c:1512 NVLoadStateExt() warn: inconsistent indenting drivers/video/fbdev/sis/sis_main.c:4265 sisfb_post_300_rwtest() warn: inconsistent indenting Reported-by: Abaci Robot Signed-off-by: Yang Li --- drivers/video/fbdev/nvidia/nv_hw.c | 8 ++++---- drivers/video/fbdev/sis/sis_main.c | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/video/fbdev/nvidia/nv_hw.c b/drivers/video/fbdev/nvidia/nv_hw.c index 9b0a324bb1b4..75afaa07e7eb 100644 --- a/drivers/video/fbdev/nvidia/nv_hw.c +++ b/drivers/video/fbdev/nvidia/nv_hw.c @@ -1509,10 +1509,10 @@ void NVLoadStateExt(struct nvidia_par *par, RIVA_HW_STATE * state) NV_WR32(par->PFIFO, 0x0495 * 4, 0x00000001); NV_WR32(par->PFIFO, 0x0140 * 4, 0x00000001); - if (!state) { - par->CurrentState = NULL; - return; - } + if (!state) { + par->CurrentState = NULL; + return; + } if (par->Architecture >= NV_ARCH_10) { if (par->twoHeads) { diff --git a/drivers/video/fbdev/sis/sis_main.c b/drivers/video/fbdev/sis/sis_main.c index f28fd69d5eb7..07acbe72fbaa 100644 --- a/drivers/video/fbdev/sis/sis_main.c +++ b/drivers/video/fbdev/sis/sis_main.c @@ -4262,7 +4262,7 @@ static int sisfb_post_300_rwtest(struct sis_video_info *ivideo, int iteration, unsigned int k, RankCapacity, PageCapacity, BankNumHigh, BankNumMid; unsigned int PhysicalAdrOtherPage, PhysicalAdrHigh, PhysicalAdrHalfPage; - for(k = 0; k < ARRAY_SIZE(SiS_DRAMType); k++) { + for (k = 0; k < ARRAY_SIZE(SiS_DRAMType); k++) { RankCapacity = buswidth * SiS_DRAMType[k][3]; -- 2.20.1.7.g153144c