Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp7945284rwi; Mon, 24 Oct 2022 23:49:14 -0700 (PDT) X-Google-Smtp-Source: AMsMyM68IgthwM8CLHZP+9grL7LtHzaMSHLPhgmauzCDUAMH+cjNnEwmU8I1oLD5MVMdLarQqKeV X-Received: by 2002:a05:6402:1690:b0:45f:d702:9919 with SMTP id a16-20020a056402169000b0045fd7029919mr25534193edv.127.1666680553916; Mon, 24 Oct 2022 23:49:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666680553; cv=none; d=google.com; s=arc-20160816; b=LyVbuIJ1vDEUZYPb1Z1W82WUSxR2q/MXGnZpGVgFeyWkdiqOHa5GrVrBekZP6Io46y AQVL7HkOBqWLkPFcloqKmsRDD9TfOofR9s+vv3LR9JwCK20EB2bppMj3fx4VAEgHhc22 qJzLszwj9f+rSAiNFFyOTKprO8qx5eLvLm8djN8t/6kWslIKVKTNh0v+Qhj//DTZuMb3 yNY2uIv3TSlOxO5F4HfY7KgnHvAOfbPTQdocsAwV52wflCk4HhptmFHw8bOoR1hzQjPx jXJIyT/MFOb3nAIP3/Hh9H+YwUkQloAQHz5AOcPIubE7jac2isR1rASjnQQUoDUzHexW RYYA== 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=v2qT5ybj04QFP42aHVp8P1Tj9u1sEmjyLm8cwDAZ0Pg=; b=aHajs5Tn8f04wQqoW9gDLjeDEgbq8fgMHwHQdIk3AX3dOWcyfUpCojCYQzg3/RRq6Y manbu80Pe5FAsViw5vLSuwjqrgg4F74XCfHTh8YD1P6cCZrij/VoemCXRFo1fPzZxkxj LUJnGyLgtDzQotu2mmF2v7Y6PNZSVeppf/AeIJrjoWGh6TuWGywDjiEjY5uLAipdKrKz Echy160pPCK3rcJkFZoItJGwtCGpKqPAyK33UPfMB/FoyXHeSz89ng2YcMYgyiduQ3UH f0n44e8XBJDO+vyzNIl7tT4l1Kkuv0tNaHJj1GKJT7KoVNPEqfcalse72pxbw9Yv5OsR VUxw== 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 dd21-20020a1709069b9500b00787d0df52f3si2276938ejc.910.2022.10.24.23.48.49; Mon, 24 Oct 2022 23:49:13 -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 S230138AbiJYGAa (ORCPT + 99 others); Tue, 25 Oct 2022 02:00:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60804 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229785AbiJYGA3 (ORCPT ); Tue, 25 Oct 2022 02:00:29 -0400 Received: from out199-16.us.a.mail.aliyun.com (out199-16.us.a.mail.aliyun.com [47.90.199.16]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AA0EEDBE7F; Mon, 24 Oct 2022 23:00:26 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R171e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018045192;MF=yang.lee@linux.alibaba.com;NM=1;PH=DS;RN=8;SR=0;TI=SMTPD_---0VT1YRYf_1666677621; Received: from localhost(mailfrom:yang.lee@linux.alibaba.com fp:SMTPD_---0VT1YRYf_1666677621) by smtp.aliyun-inc.com; Tue, 25 Oct 2022 14:00:22 +0800 From: Yang Li To: james.smart@broadcom.com Cc: dick.kennedy@broadcom.com, jejb@linux.ibm.com, martin.petersen@oracle.com, linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, Yang Li , Abaci Robot Subject: [PATCH -next] scsi: lpfc: clean up some inconsistent indentings Date: Tue, 25 Oct 2022 14:00:20 +0800 Message-Id: <20221025060020.20250-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,SPF_HELO_NONE,SPF_PASS,UNPARSEABLE_RELAY, URIBL_BLOCKED,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 drivers/scsi/lpfc/lpfc_attr.c:1944 lpfc_xcvr_data_show() warn: inconsistent indenting Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=2535 Reported-by: Abaci Robot Signed-off-by: Yang Li --- drivers/scsi/lpfc/lpfc_attr.c | 46 +++++++++++++++-------------------- 1 file changed, 19 insertions(+), 27 deletions(-) diff --git a/drivers/scsi/lpfc/lpfc_attr.c b/drivers/scsi/lpfc/lpfc_attr.c index 030ad1d59cbd..d7a3496471cd 100644 --- a/drivers/scsi/lpfc/lpfc_attr.c +++ b/drivers/scsi/lpfc/lpfc_attr.c @@ -1941,33 +1941,25 @@ lpfc_xcvr_data_show(struct device *dev, struct device_attribute *attr, &rdp_context->page_a0[SSF_TRANSCEIVER_CODE_B7]; len += scnprintf(buf + len, PAGE_SIZE - len, "Speeds: \t"); - if (*(uint8_t *)trasn_code_byte7 == 0) { - len += scnprintf(buf + len, PAGE_SIZE - len, - "Unknown\n"); - } else { - if (trasn_code_byte7->fc_sp_100MB) - len += scnprintf(buf + len, PAGE_SIZE - len, - "1 "); - if (trasn_code_byte7->fc_sp_200mb) - len += scnprintf(buf + len, PAGE_SIZE - len, - "2 "); - if (trasn_code_byte7->fc_sp_400MB) - len += scnprintf(buf + len, PAGE_SIZE - len, - "4 "); - if (trasn_code_byte7->fc_sp_800MB) - len += scnprintf(buf + len, PAGE_SIZE - len, - "8 "); - if (trasn_code_byte7->fc_sp_1600MB) - len += scnprintf(buf + len, PAGE_SIZE - len, - "16 "); - if (trasn_code_byte7->fc_sp_3200MB) - len += scnprintf(buf + len, PAGE_SIZE - len, - "32 "); - if (trasn_code_byte7->speed_chk_ecc) - len += scnprintf(buf + len, PAGE_SIZE - len, - "64 "); - len += scnprintf(buf + len, PAGE_SIZE - len, "GB\n"); - } + if (*(uint8_t *)trasn_code_byte7 == 0) { + len += scnprintf(buf + len, PAGE_SIZE - len, "Unknown\n"); + } else { + if (trasn_code_byte7->fc_sp_100MB) + len += scnprintf(buf + len, PAGE_SIZE - len, "1 "); + if (trasn_code_byte7->fc_sp_200mb) + len += scnprintf(buf + len, PAGE_SIZE - len, "2 "); + if (trasn_code_byte7->fc_sp_400MB) + len += scnprintf(buf + len, PAGE_SIZE - len, "4 "); + if (trasn_code_byte7->fc_sp_800MB) + len += scnprintf(buf + len, PAGE_SIZE - len, "8 "); + if (trasn_code_byte7->fc_sp_1600MB) + len += scnprintf(buf + len, PAGE_SIZE - len, "16 "); + if (trasn_code_byte7->fc_sp_3200MB) + len += scnprintf(buf + len, PAGE_SIZE - len, "32 "); + if (trasn_code_byte7->speed_chk_ecc) + len += scnprintf(buf + len, PAGE_SIZE - len, "64 "); + len += scnprintf(buf + len, PAGE_SIZE - len, "GB\n"); + } temperature = (rdp_context->page_a2[SFF_TEMPERATURE_B1] << 8 | rdp_context->page_a2[SFF_TEMPERATURE_B0]); vcc = (rdp_context->page_a2[SFF_VCC_B1] << 8 | -- 2.20.1.7.g153144c