Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp341243pxf; Thu, 25 Mar 2021 05:33:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyUsZZem9TLbaL6p/VeoTRNJXnpgi+K31EM+AZOKt6uMza6DL+yekjOsnrYFNIKbUtfw76G X-Received: by 2002:a50:82c5:: with SMTP id 63mr8726297edg.97.1616675598043; Thu, 25 Mar 2021 05:33:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616675598; cv=none; d=google.com; s=arc-20160816; b=z/SfETs1WfywO/SyVXApVEUFtxnZ981m3qrsUpdDaiKczPgDZosrOUqOPOQf7L7nQf cPvQ3zSqALojy4ZUP0NNqc+MKPLGcQthE65+pSu5d3JFDgojglzuhdgBy/7u0U+2GB+b AnAIqgHOhIOerNr/k+H7lA58o/LO5C025CwhmlyRQZ3+EmtQpRWAKh5eDWjorZ2Juzig TF15/EtBgiL6Lxtnrm51HMx9dj1fiQuDLYrsSEJf6ZW+RweV2eb1EhpRLr1sdf/f5MyY AaYVUBuzDADmQlrPMH3KT8Ocu7wMxVhz9i1CmZ/7ys69Ivlo2FZZ0vDMTMDo/fXjGOvp SJkw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from; bh=9d7D+cfhxtKCA0rWXyE/ehPSFJH7n4/LlK1pnsevukA=; b=uH+m9khIuYhwL5QkIS/4vPQJM12zYyij2yCiZe4LiASv/4MG1NNZJPtb1Y8xR5bF29 vKxrUVv+AEvzOml4IGlCqoHf/wsHKQbj2/j6yxXB0rmDqkxg3c7IAtEs1Wmtn+bAzIy0 so0wa4hU3pBr+t6fJkHE44bx4QvL7Y4Y59ju9GL3F+NYwv1hoWRSKciNvUTYUBwLGxVP z5f0fCAqZN5pi7TqKbw4YwjsTK5N0AxSChrn8ACxubZayYUU5kFFOuX7cO1/xKoxLKbE ggcLviX+2ApM+0KTiqMHUw/9Y5SdyzE/cvbfc7DN4fjvwgWaN/g9rRPFww81S1sev8Ny ckYg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c18si4045285eds.285.2021.03.25.05.32.55; Thu, 25 Mar 2021 05:33:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231233AbhCYMaJ (ORCPT + 99 others); Thu, 25 Mar 2021 08:30:09 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:14592 "EHLO szxga04-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230238AbhCYM3e (ORCPT ); Thu, 25 Mar 2021 08:29:34 -0400 Received: from DGGEMS403-HUB.china.huawei.com (unknown [172.30.72.60]) by szxga04-in.huawei.com (SkyGuard) with ESMTP id 4F5krg5PKnz19HC2; Thu, 25 Mar 2021 20:27:31 +0800 (CST) Received: from huawei.com (10.69.192.56) by DGGEMS403-HUB.china.huawei.com (10.3.19.203) with Microsoft SMTP Server id 14.3.498.0; Thu, 25 Mar 2021 20:29:23 +0800 From: Luo Jiaxing To: , , , CC: , , , , Subject: [PATCH v1 2/2] scsi: libsas: clean up for white spaces Date: Thu, 25 Mar 2021 20:29:56 +0800 Message-ID: <1616675396-6108-3-git-send-email-luojiaxing@huawei.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1616675396-6108-1-git-send-email-luojiaxing@huawei.com> References: <1616675396-6108-1-git-send-email-luojiaxing@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.69.192.56] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Some checkpatch errors are found that some white spaces are missing or being used inappropriately. So fix them all. Signed-off-by: Luo Jiaxing --- drivers/scsi/libsas/sas_discover.c | 2 +- drivers/scsi/libsas/sas_expander.c | 15 ++++++++------- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/drivers/scsi/libsas/sas_discover.c b/drivers/scsi/libsas/sas_discover.c index 4a39848..3692817 100644 --- a/drivers/scsi/libsas/sas_discover.c +++ b/drivers/scsi/libsas/sas_discover.c @@ -75,7 +75,7 @@ static int sas_get_port_device(struct asd_sas_port *port) struct dev_to_host_fis *fis = (struct dev_to_host_fis *) dev->frame_rcvd; if (fis->interrupt_reason == 1 && fis->lbal == 1 && - fis->byte_count_low==0x69 && fis->byte_count_high == 0x96 + fis->byte_count_low == 0x69 && fis->byte_count_high == 0x96 && (fis->device & ~0x10) == 0) dev->dev_type = SAS_SATA_PM; else diff --git a/drivers/scsi/libsas/sas_expander.c b/drivers/scsi/libsas/sas_expander.c index ebb55e4..fc6b9d8 100644 --- a/drivers/scsi/libsas/sas_expander.c +++ b/drivers/scsi/libsas/sas_expander.c @@ -553,7 +553,7 @@ static int sas_ex_manuf_info(struct domain_device *dev) mi_req[1] = SMP_REPORT_MANUF_INFO; - res = smp_execute_task(dev, mi_req, MI_REQ_SIZE, mi_resp,MI_RESP_SIZE); + res = smp_execute_task(dev, mi_req, MI_REQ_SIZE, mi_resp, MI_RESP_SIZE); if (res) { pr_notice("MI: ex %016llx failed:0x%x\n", SAS_ADDR(dev->sas_addr), res); @@ -594,13 +594,13 @@ int sas_smp_phy_control(struct domain_device *dev, int phy_id, pc_req[1] = SMP_PHY_CONTROL; pc_req[9] = phy_id; - pc_req[10]= phy_func; + pc_req[10] = phy_func; if (rates) { pc_req[32] = rates->minimum_linkrate << 4; pc_req[33] = rates->maximum_linkrate << 4; } - res = smp_execute_task(dev, pc_req, PC_REQ_SIZE, pc_resp,PC_RESP_SIZE); + res = smp_execute_task(dev, pc_req, PC_REQ_SIZE, pc_resp, PC_RESP_SIZE); if (res) { pr_err("ex %016llx phy%02d PHY control failed: %d\n", SAS_ADDR(dev->sas_addr), phy_id, res); @@ -678,7 +678,7 @@ int sas_smp_get_phy_events(struct sas_phy *phy) req[9] = phy->number; res = smp_execute_task(dev, req, RPEL_REQ_SIZE, - resp, RPEL_RESP_SIZE); + resp, RPEL_RESP_SIZE); if (res) goto out; @@ -714,7 +714,7 @@ int sas_get_report_phy_sata(struct domain_device *dev, int phy_id, rps_req[9] = phy_id; res = smp_execute_task(dev, rps_req, RPS_REQ_SIZE, - rps_resp, RPS_RESP_SIZE); + rps_resp, RPS_RESP_SIZE); /* 0x34 is the FIS type for the D2H fis. There's a potential * standards cockup here. sas-2 explicitly specifies the FIS @@ -1117,7 +1117,7 @@ static int sas_ex_discover_dev(struct domain_device *dev, int phy_id) */ if (SAS_ADDR(ex->ex_phy[i].attached_sas_addr) == SAS_ADDR(child->sas_addr)) { - ex->ex_phy[i].phy_state= PHY_DEVICE_DISCOVERED; + ex->ex_phy[i].phy_state = PHY_DEVICE_DISCOVERED; if (sas_ex_join_wide_port(dev, i)) pr_debug("Attaching ex phy%02d to wide port %016llx\n", i, SAS_ADDR(ex->ex_phy[i].attached_sas_addr)); @@ -1533,7 +1533,8 @@ static int sas_configure_phy(struct domain_device *dev, int phy_id, if (res) return res; if (include ^ present) - return sas_configure_set(dev, phy_id, sas_addr, index,include); + return sas_configure_set(dev, phy_id, sas_addr, index, + include); return res; } -- 2.7.4