From patchwork Thu Sep 28 01:25:57 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: KaiLong Wang X-Patchwork-Id: 145667 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:cae8:0:b0:403:3b70:6f57 with SMTP id r8csp3009280vqu; Wed, 27 Sep 2023 18:33:44 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE/ME/TQ8jHdWrk08iq9p3Oy62IYpTARfD8DUvB0aRQu0djFefFB5KZo072klCn64zybd0L X-Received: by 2002:a67:f699:0:b0:44d:47a2:789c with SMTP id n25-20020a67f699000000b0044d47a2789cmr3517383vso.25.1695864824166; Wed, 27 Sep 2023 18:33:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695864824; cv=none; d=google.com; s=arc-20160816; b=GJf41Jo2EGEGxpm8XkFY7TtrsaGYNkBo+50ux9ICffYlo+qUst8yk8futhuGsnSSQ+ lIWI+24XWHs3An/7jsvc92f7jFIisz9zfwyAzocDOgEavEhm9wnIXXr3Z36+jLzpdfYg oVLB5/Wj+93WW/x1P86vxnlRt1Ptqv+7knfPM3hNhqQEmhqP4tPMRi1CAcfmKbDucIrr IF4uxWFCwkcGl8prFLb8zeFXXtozkuDFt0i1gqDQyh9C17zKbPhaZoJ9ujLmFpMgq+Ng wbFbJ0ElCBvi2YaLtSwSVi7mzGlOR/SrWt243X97rkBsFZD3wy2zGEGNIaBzbNMqxvux ckUw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:mime-version :content-transfer-encoding:subject:cc:to:from:date; bh=Yxv2odF6bAwDURip3LpZzR60gd5Ih+1aqJNH/D4Q2wc=; fh=biZ6EUk0JgOTQvhW0BINOd+a5C+XJzJDBnokO4v3fIY=; b=gTDxbCvFpSD7ZMhhEctzmLsuWhezkiU6aD+45mu/DuJNizbAYsczxhiFX10ChMLbqV g7+ncT/PKhyXXqU3eEYeFPHGHK/L1YlwPCpEUZJ2Nn+MI5TBYwOb8VkDDTk3d3prphM+ 5RT+tb4sWLwYE9O5Ooy+maCVnm37K+FYyw6LoWN4wTkaQZoqNLA0Y7e/9wD9dJZw6Fy5 es65VbYoSC5J2rwGwNpKQWtg+vFKROLteDalm5ocYDlvSpjKlUP+y1rT26LCfNC6U6I8 EX2j+flqD3fsZ0BBFbEkuK6/1z0bWcb5XYc3/wkUR3/hBygNRwpm3qGvkH0tA5x6okqO NfdA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id 1-20020a631541000000b00573fa8f2827si16840619pgv.340.2023.09.27.18.33.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Sep 2023 18:33:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 90AA58099273; Wed, 27 Sep 2023 18:31:06 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229987AbjI1Baq (ORCPT + 20 others); Wed, 27 Sep 2023 21:30:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48900 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229437AbjI1Bap (ORCPT ); Wed, 27 Sep 2023 21:30:45 -0400 X-Greylist: delayed 187 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Wed, 27 Sep 2023 18:30:37 PDT Received: from jari.cn (unknown [218.92.28.115]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 72478AC; Wed, 27 Sep 2023 18:30:37 -0700 (PDT) Received: from wangkailong$jari.cn ( [182.148.12.64] ) by ajax-webmail-localhost.localdomain (Coremail) ; Thu, 28 Sep 2023 09:25:57 +0800 (GMT+08:00) X-Originating-IP: [182.148.12.64] Date: Thu, 28 Sep 2023 09:25:57 +0800 (GMT+08:00) X-CM-HeaderCharset: UTF-8 From: "KaiLong Wang" To: satishkh@cisco.com, sebaddel@cisco.com, kartilak@cisco.com, jejb@linux.ibm.com, martin.petersen@oracle.co Cc: linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] scsi: fnic: Clean up errors in fnic_scsi.c X-Priority: 3 X-Mailer: Coremail Webmail Server Version 2023.1-cmXT6 build 20230419(ff23bf83) Copyright (c) 2002-2023 www.mailtech.cn mispb-4e503810-ca60-4ec8-a188-7102c18937cf-zhkzyfz.cn MIME-Version: 1.0 Message-ID: <7b9428c6.895.18ad9648170.Coremail.wangkailong@jari.cn> X-Coremail-Locale: zh_CN X-CM-TRANSID: AQAAfwDnhD8l1hRlCnS+AA--.588W X-CM-SenderInfo: 5zdqwypdlo00nj6mt2flof0/1tbiAQAJB2T8PZMAAQAEs8 X-Coremail-Antispam: 1Ur529EdanIXcx71UUUUU7IcSsGvfJ3iIAIbVAYjsxI4VWxJw CS07vEb4IE77IF4wCS07vE1I0E4x80FVAKz4kxMIAIbVAFxVCaYxvI4VCIwcAKzIAtYxBI daVFxhVjvjDU= X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Wed, 27 Sep 2023 18:31:06 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1778243153983991673 X-GMAIL-MSGID: 1778243153983991673 Fix the following errors reported by checkpatch: ERROR: space required before the open parenthesis '(' Signed-off-by: KaiLong Wang --- drivers/scsi/fnic/fnic_scsi.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/scsi/fnic/fnic_scsi.c b/drivers/scsi/fnic/fnic_scsi.c index 9761b2c9db48..fb4184f794db 100644 --- a/drivers/scsi/fnic/fnic_scsi.c +++ b/drivers/scsi/fnic/fnic_scsi.c @@ -1019,22 +1019,22 @@ static void fnic_fcpio_icmnd_cmpl_handler(struct fnic *fnic, io_duration_time = jiffies_to_msecs(jiffies) - jiffies_to_msecs(start_time); - if(io_duration_time <= 10) + if (io_duration_time <= 10) atomic64_inc(&fnic_stats->io_stats.io_btw_0_to_10_msec); - else if(io_duration_time <= 100) + else if (io_duration_time <= 100) atomic64_inc(&fnic_stats->io_stats.io_btw_10_to_100_msec); - else if(io_duration_time <= 500) + else if (io_duration_time <= 500) atomic64_inc(&fnic_stats->io_stats.io_btw_100_to_500_msec); - else if(io_duration_time <= 5000) + else if (io_duration_time <= 5000) atomic64_inc(&fnic_stats->io_stats.io_btw_500_to_5000_msec); - else if(io_duration_time <= 10000) + else if (io_duration_time <= 10000) atomic64_inc(&fnic_stats->io_stats.io_btw_5000_to_10000_msec); - else if(io_duration_time <= 30000) + else if (io_duration_time <= 30000) atomic64_inc(&fnic_stats->io_stats.io_btw_10000_to_30000_msec); else { atomic64_inc(&fnic_stats->io_stats.io_greater_than_30000_msec); - if(io_duration_time > atomic64_read(&fnic_stats->io_stats.current_max_io_time)) + if (io_duration_time > atomic64_read(&fnic_stats->io_stats.current_max_io_time)) atomic64_set(&fnic_stats->io_stats.current_max_io_time, io_duration_time); } }