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: 727552 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4C213E82CBC for ; Thu, 28 Sep 2023 01:30:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229975AbjI1Baq (ORCPT ); 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= Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org 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); } }