From patchwork Thu Mar 30 01:20:57 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yang Li X-Patchwork-Id: 76868 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp810197vqo; Wed, 29 Mar 2023 18:54:36 -0700 (PDT) X-Google-Smtp-Source: AKy350b6he+BtmWcSUtx+Woz0l5aXJquvWE/VVG2JdLrXwYXaZR8VvBiUo7k+LxNB515WHaWQQia X-Received: by 2002:a17:906:5d0b:b0:933:3aa7:57a7 with SMTP id g11-20020a1709065d0b00b009333aa757a7mr25747164ejt.49.1680141276409; Wed, 29 Mar 2023 18:54:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680141276; cv=none; d=google.com; s=arc-20160816; b=hr5jLec8cOnXBQQLlXMbWe7HkWC2ejzEmSpR9X/Q+s7snBVIxeemePQdnbARekQOcw 5TgeqJclBhNdLzwhaFWG4dur3OoSIb/I2A4PBoOdT2c7mnWGfq0ZnSJcBoUH3a00yYn7 a8P1fldsCOvPu9u/nm2ndGYk4Tnleu04z7nWm/e+PN25wI0jiAR3IswZA892x1kvL+Rq iaXwSESCoZ2x1ekdupkB+ABWYgW+9p+rUo43oQk51XoP6wtSKQf92dr20q4hEtfE/DZt /wwR1LnPMGkHuuZloNgKOXXepQQHrq9VOODmsXQpbLpRPtqX6g9/Qt2axE5fVdbPOmU+ Rp1Q== 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=iiz2vrDhNcvtrvQrFJPnRwYol2BOStaWx8eUxAAmpbY=; b=dOPy1qTnY2jnEHWdfGkvSgjEskw+SaUCCTpwLsbfiL5sUrUpKvJYzrLdmt51lrXNqh sYtOMhjunNqtWji+0Kvr9G9igUu4crzyOU5/hH7uGadK4Ne4vg2SOX44vS1QTad+3S08 p+thHK6k/psg1bQdTwkhDDvrS+uLXksuQkYwNNadeCOQrjaCDAwDGZrVntr105rS5Hf0 0yY9WXvD+qkf36UFfGencLyq+v6YzyhWdP6cc55yjNRozbb5LDFU1rI026QqLblMknC6 XBTdt9xa/6EyglWAZzw4JkRA+TOfm3mrHsHCPQw1j2UKM2j4TnSDNi8rMcsjvbZCgxGZ OsZA== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id vo10-20020a170907a80a00b00931f078ce63si26730081ejc.278.2023.03.29.18.54.12; Wed, 29 Mar 2023 18:54:36 -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 S229623AbjC3BVF (ORCPT + 99 others); Wed, 29 Mar 2023 21:21:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46896 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229475AbjC3BVD (ORCPT ); Wed, 29 Mar 2023 21:21:03 -0400 Received: from out30-110.freemail.mail.aliyun.com (out30-110.freemail.mail.aliyun.com [115.124.30.110]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2DCBD3C06; Wed, 29 Mar 2023 18:21:02 -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=ay29a033018046059;MF=yang.lee@linux.alibaba.com;NM=1;PH=DS;RN=10;SR=0;TI=SMTPD_---0VeyT6ac_1680139258; Received: from localhost(mailfrom:yang.lee@linux.alibaba.com fp:SMTPD_---0VeyT6ac_1680139258) by smtp.aliyun-inc.com; Thu, 30 Mar 2023 09:20:59 +0800 From: Yang Li To: yazen.ghannam@amd.com Cc: bp@alien8.de, tony.luck@intel.com, james.morse@arm.com, mchehab@kernel.org, rric@kernel.org, linux-edac@vger.kernel.org, linux-kernel@vger.kernel.org, Yang Li , Abaci Robot Subject: [PATCH -next] EDAC/amd64: clean up some inconsistent indentings Date: Thu, 30 Mar 2023 09:20:57 +0800 Message-Id: <20230330012057.114811-1-yang.lee@linux.alibaba.com> X-Mailer: git-send-email 2.20.1.7.g153144c MIME-Version: 1.0 X-Spam-Status: No, score=-8.0 required=5.0 tests=ENV_AND_HDR_SPF_MATCH, SPF_HELO_NONE,SPF_PASS,UNPARSEABLE_RELAY,USER_IN_DEF_SPF_WL autolearn=unavailable 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1761755819142252985?= X-GMAIL-MSGID: =?utf-8?q?1761755819142252985?= drivers/edac/amd64_edac.c:1279 umc_determine_edac_cap() warn: inconsistent indenting Reported-by: Abaci Robot Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=4639 Signed-off-by: Yang Li --- drivers/edac/amd64_edac.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/drivers/edac/amd64_edac.c b/drivers/edac/amd64_edac.c index 6dad0f1064c0..5c4292e65b96 100644 --- a/drivers/edac/amd64_edac.c +++ b/drivers/edac/amd64_edac.c @@ -1276,19 +1276,19 @@ static unsigned long umc_determine_edac_cap(struct amd64_pvt *pvt) u8 i, umc_en_mask = 0, dimm_ecc_en_mask = 0; unsigned long edac_cap = EDAC_FLAG_NONE; - for_each_umc(i) { - if (!(pvt->umc[i].sdp_ctrl & UMC_SDP_INIT)) - continue; + for_each_umc(i) { + if (!(pvt->umc[i].sdp_ctrl & UMC_SDP_INIT)) + continue; - umc_en_mask |= BIT(i); + umc_en_mask |= BIT(i); - /* UMC Configuration bit 12 (DimmEccEn) */ - if (pvt->umc[i].umc_cfg & BIT(12)) - dimm_ecc_en_mask |= BIT(i); - } + /* UMC Configuration bit 12 (DimmEccEn) */ + if (pvt->umc[i].umc_cfg & BIT(12)) + dimm_ecc_en_mask |= BIT(i); + } - if (umc_en_mask == dimm_ecc_en_mask) - edac_cap = EDAC_FLAG_SECDED; + if (umc_en_mask == dimm_ecc_en_mask) + edac_cap = EDAC_FLAG_SECDED; return edac_cap; }