Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp5362374rwl; Mon, 3 Apr 2023 19:28:01 -0700 (PDT) X-Google-Smtp-Source: AKy350ZN+hhU6JFnSsbcpieKlwqw8UDNA4ZO6wUEq06lgVYLvoZz08RxgYvovf0Sxx6MThe4eEmw X-Received: by 2002:a17:906:6a05:b0:937:9a24:370b with SMTP id qw5-20020a1709066a0500b009379a24370bmr710215ejc.67.1680575281095; Mon, 03 Apr 2023 19:28:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680575281; cv=none; d=google.com; s=arc-20160816; b=xTjjBWw0gLkEAGF0MUhOOjqu7vBr+UYEjK6UPruEZxMGI9DPAsatRL7Dnbt/TiRx4o AKlD1vqsX15gcJUBcKQuV16yaiT88seNRY5OsZzaSUwcvrMI89hDRedxhRvD82KMFKDz Lmq2Ufax8tzDp/cmkSg1ZPp5Ifr0t6EubM/jTwqgfctuST9GW1tDIso2HLWuvoIKW7y0 AMcj2l8jBnisdBdIFFxlkRUDOXI43ff9pFR81XGVwyWG0kvwY0A+hgUWI1ZEhaMsSyo8 m3bo6j57ERFdTzuKa4mIvqZ7flHooB1F9XaSYKa8Cdm0XHxeLdke0gcfiir8t19zewEg IpfA== 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=C2qcke6WX35ukbbC9ITjV5H5IZbZONo4CPrtV56OkJ4=; b=r46kox68DLrQ/snk0wzfmkZ32hAoTm0KJGGIyFtdPeYAs79G9ycPgJKX/vMk1a9IQ+ VI3cCmalbJozoj57xnP7hNEcAp0aBKlJcCpMo3lfe04R3N0IIZcr8Y19qWeARjHsJ1fM a2xVeFbJN2iim8+SuXviIQEbCUInB4LihxtUPCkp/EI1OJT1ZWvCNxfTcbuBYf+/OO73 L46XFcFTsqF3FrkSJ5rR1KxmdZ8RrTbB3+4CaHo5hTyGux6Qr7q0Aa82Lut9S094pNhp t7foOAnjeHT1SkT8do7K1RPR7SZ+XJXV+SvvDpzVApNiJm0859K/ItS8mC54M18KyoDA +4qQ== 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 w9-20020a170906130900b00947691dacd6si7237295ejb.140.2023.04.03.19.27.36; Mon, 03 Apr 2023 19:28:01 -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 S231828AbjDDC0F (ORCPT + 99 others); Mon, 3 Apr 2023 22:26:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35966 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231450AbjDDC0D (ORCPT ); Mon, 3 Apr 2023 22:26:03 -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 F344D1BFA; Mon, 3 Apr 2023 19:26:01 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R191e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018045168;MF=yang.lee@linux.alibaba.com;NM=1;PH=DS;RN=10;SR=0;TI=SMTPD_---0VfJnoQY_1680575158; Received: from localhost(mailfrom:yang.lee@linux.alibaba.com fp:SMTPD_---0VfJnoQY_1680575158) by smtp.aliyun-inc.com; Tue, 04 Apr 2023 10:25: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 v2] EDAC/amd64: clean up some inconsistent indentings Date: Tue, 4 Apr 2023 10:25:57 +0800 Message-Id: <20230404022557.46409-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=-8.0 required=5.0 tests=ENV_AND_HDR_SPF_MATCH, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,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 Use consistent indentation to improve the readability and eliminate the below warning: 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 Fixes: f6a4b4a1aa16 ("EDAC/amd64: Split determine_edac_cap() into dct/umc functions") Signed-off-by: Yang Li --- change in v2: --According to yazen's suggestion, include a fixes tag and describe the changes in the commit message 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; } -- 2.20.1.7.g153144c