Skip to content

Commit a5ec7f8

Browse files
James BottomleyJames Bottomley
authored andcommitted
[SCSI] isci: fix checkpatch errors
Signed-off-by: James Bottomley <[email protected]>
1 parent 5b45b69 commit a5ec7f8

File tree

5 files changed

+44
-42
lines changed

5 files changed

+44
-42
lines changed

drivers/scsi/isci/phy.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ sci_phy_link_layer_initialization(struct isci_phy *iphy,
197197
llctl = SCU_SAS_LLCTL_GEN_VAL(NO_OUTBOUND_TASK_TIMEOUT,
198198
(u8)ihost->user_parameters.no_outbound_task_timeout);
199199

200-
switch(phy_user->max_speed_generation) {
200+
switch (phy_user->max_speed_generation) {
201201
case SCIC_SDS_PARM_GEN3_SPEED:
202202
link_rate = SCU_SAS_LINK_LAYER_CONTROL_MAX_LINK_RATE_GEN3;
203203
break;

drivers/scsi/isci/probe_roms.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,9 @@
3434
#include "task.h"
3535
#include "probe_roms.h"
3636

37-
static efi_char16_t isci_efivar_name[] =
38-
{'R', 's', 't', 'S', 'c', 'u', 'O'};
37+
static efi_char16_t isci_efivar_name[] = {
38+
'R', 's', 't', 'S', 'c', 'u', 'O'
39+
};
3940

4041
struct isci_orom *isci_request_oprom(struct pci_dev *pdev)
4142
{
@@ -182,7 +183,7 @@ struct isci_orom *isci_get_efi_var(struct pci_dev *pdev)
182183
struct isci_oem_hdr *oem_hdr;
183184
u8 *tmp, sum;
184185
int j;
185-
ssize_t data_len;
186+
unsigned long data_len;
186187
u8 *efi_data;
187188
u32 efi_attrib = 0;
188189

drivers/scsi/isci/remote_device.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
static void isci_remote_device_not_ready(struct isci_host *ihost,
7474
struct isci_remote_device *idev, u32 reason)
7575
{
76-
struct isci_request * ireq;
76+
struct isci_request *ireq;
7777

7878
dev_dbg(&ihost->pdev->dev,
7979
"%s: isci_device = %p\n", __func__, idev);

drivers/scsi/isci/request.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -440,8 +440,8 @@ void sci_smp_request_copy_response(struct isci_request *ireq);
440440
static inline int isci_task_is_ncq_recovery(struct sas_task *task)
441441
{
442442
return (sas_protocol_ata(task->task_proto) &&
443-
task->ata_task.fis.command == ATA_CMD_READ_LOG_EXT &&
444-
task->ata_task.fis.lbal == ATA_LOG_SATA_NCQ);
443+
task->ata_task.fis.command == ATA_CMD_READ_LOG_EXT &&
444+
task->ata_task.fis.lbal == ATA_LOG_SATA_NCQ);
445445

446446
}
447447

drivers/scsi/isci/task.c

Lines changed: 36 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -88,44 +88,45 @@ static void isci_task_refuse(struct isci_host *ihost, struct sas_task *task,
8888
* function should not be completed to the host in the regular path.
8989
*/
9090
switch (disposition) {
91-
case isci_perform_normal_io_completion:
92-
/* Normal notification (task_done) */
93-
dev_dbg(&ihost->pdev->dev,
94-
"%s: Normal - task = %p, response=%d, "
95-
"status=%d\n",
96-
__func__, task, response, status);
91+
case isci_perform_normal_io_completion:
92+
/* Normal notification (task_done) */
93+
dev_dbg(&ihost->pdev->dev,
94+
"%s: Normal - task = %p, response=%d, "
95+
"status=%d\n",
96+
__func__, task, response, status);
9797

98-
task->lldd_task = NULL;
98+
task->lldd_task = NULL;
9999

100-
isci_execpath_callback(ihost, task, task->task_done);
101-
break;
100+
isci_execpath_callback(ihost, task, task->task_done);
101+
break;
102102

103-
case isci_perform_aborted_io_completion:
104-
/* No notification because this request is already in the
105-
* abort path.
106-
*/
107-
dev_dbg(&ihost->pdev->dev,
108-
"%s: Aborted - task = %p, response=%d, "
109-
"status=%d\n",
110-
__func__, task, response, status);
111-
break;
103+
case isci_perform_aborted_io_completion:
104+
/*
105+
* No notification because this request is already in the
106+
* abort path.
107+
*/
108+
dev_dbg(&ihost->pdev->dev,
109+
"%s: Aborted - task = %p, response=%d, "
110+
"status=%d\n",
111+
__func__, task, response, status);
112+
break;
112113

113-
case isci_perform_error_io_completion:
114-
/* Use sas_task_abort */
115-
dev_dbg(&ihost->pdev->dev,
116-
"%s: Error - task = %p, response=%d, "
117-
"status=%d\n",
118-
__func__, task, response, status);
114+
case isci_perform_error_io_completion:
115+
/* Use sas_task_abort */
116+
dev_dbg(&ihost->pdev->dev,
117+
"%s: Error - task = %p, response=%d, "
118+
"status=%d\n",
119+
__func__, task, response, status);
119120

120-
isci_execpath_callback(ihost, task, sas_task_abort);
121-
break;
121+
isci_execpath_callback(ihost, task, sas_task_abort);
122+
break;
122123

123-
default:
124-
dev_dbg(&ihost->pdev->dev,
125-
"%s: isci task notification default case!",
126-
__func__);
127-
sas_task_abort(task);
128-
break;
124+
default:
125+
dev_dbg(&ihost->pdev->dev,
126+
"%s: isci task notification default case!",
127+
__func__);
128+
sas_task_abort(task);
129+
break;
129130
}
130131
}
131132

@@ -1056,7 +1057,7 @@ int isci_task_abort_task(struct sas_task *task)
10561057
dev_dbg(&isci_host->pdev->dev,
10571058
"%s: old_request == %p\n", __func__, old_request);
10581059

1059-
any_dev_reset = isci_device_is_reset_pending(isci_host,isci_device);
1060+
any_dev_reset = isci_device_is_reset_pending(isci_host, isci_device);
10601061

10611062
spin_lock_irqsave(&task->task_state_lock, flags);
10621063

@@ -1115,9 +1116,9 @@ int isci_task_abort_task(struct sas_task *task)
11151116
__func__, task);
11161117
}
11171118
goto out;
1118-
}
1119-
else
1119+
} else {
11201120
spin_unlock_irqrestore(&task->task_state_lock, flags);
1121+
}
11211122

11221123
spin_lock_irqsave(&isci_host->scic_lock, flags);
11231124

0 commit comments

Comments
 (0)