Commit 857a80bb authored by Luo Jiaxing's avatar Luo Jiaxing Committed by Martin K. Petersen

scsi: libsas: Clean up whitespace

checkpatch reported several whitespace errors. Fix them all.

Link: https://lore.kernel.org/r/1616675396-6108-3-git-send-email-luojiaxing@huawei.comSigned-off-by: default avatarLuo Jiaxing <luojiaxing@huawei.com>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent c03f2422
...@@ -75,7 +75,7 @@ static int sas_get_port_device(struct asd_sas_port *port) ...@@ -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 *fis =
(struct dev_to_host_fis *) dev->frame_rcvd; (struct dev_to_host_fis *) dev->frame_rcvd;
if (fis->interrupt_reason == 1 && fis->lbal == 1 && 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) && (fis->device & ~0x10) == 0)
dev->dev_type = SAS_SATA_PM; dev->dev_type = SAS_SATA_PM;
else else
......
...@@ -553,7 +553,7 @@ static int sas_ex_manuf_info(struct domain_device *dev) ...@@ -553,7 +553,7 @@ static int sas_ex_manuf_info(struct domain_device *dev)
mi_req[1] = SMP_REPORT_MANUF_INFO; 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) { if (res) {
pr_notice("MI: ex %016llx failed:0x%x\n", pr_notice("MI: ex %016llx failed:0x%x\n",
SAS_ADDR(dev->sas_addr), res); SAS_ADDR(dev->sas_addr), res);
...@@ -594,13 +594,13 @@ int sas_smp_phy_control(struct domain_device *dev, int phy_id, ...@@ -594,13 +594,13 @@ int sas_smp_phy_control(struct domain_device *dev, int phy_id,
pc_req[1] = SMP_PHY_CONTROL; pc_req[1] = SMP_PHY_CONTROL;
pc_req[9] = phy_id; pc_req[9] = phy_id;
pc_req[10]= phy_func; pc_req[10] = phy_func;
if (rates) { if (rates) {
pc_req[32] = rates->minimum_linkrate << 4; pc_req[32] = rates->minimum_linkrate << 4;
pc_req[33] = rates->maximum_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) { if (res) {
pr_err("ex %016llx phy%02d PHY control failed: %d\n", pr_err("ex %016llx phy%02d PHY control failed: %d\n",
SAS_ADDR(dev->sas_addr), phy_id, res); SAS_ADDR(dev->sas_addr), phy_id, res);
...@@ -678,7 +678,7 @@ int sas_smp_get_phy_events(struct sas_phy *phy) ...@@ -678,7 +678,7 @@ int sas_smp_get_phy_events(struct sas_phy *phy)
req[9] = phy->number; req[9] = phy->number;
res = smp_execute_task(dev, req, RPEL_REQ_SIZE, res = smp_execute_task(dev, req, RPEL_REQ_SIZE,
resp, RPEL_RESP_SIZE); resp, RPEL_RESP_SIZE);
if (res) if (res)
goto out; goto out;
...@@ -714,7 +714,7 @@ int sas_get_report_phy_sata(struct domain_device *dev, int phy_id, ...@@ -714,7 +714,7 @@ int sas_get_report_phy_sata(struct domain_device *dev, int phy_id,
rps_req[9] = phy_id; rps_req[9] = phy_id;
res = smp_execute_task(dev, rps_req, RPS_REQ_SIZE, 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 /* 0x34 is the FIS type for the D2H fis. There's a potential
* standards cockup here. sas-2 explicitly specifies the FIS * standards cockup here. sas-2 explicitly specifies the FIS
...@@ -1506,7 +1506,8 @@ static int sas_configure_phy(struct domain_device *dev, int phy_id, ...@@ -1506,7 +1506,8 @@ static int sas_configure_phy(struct domain_device *dev, int phy_id,
if (res) if (res)
return res; return res;
if (include ^ present) 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; return res;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment