summaryrefslogtreecommitdiff
path: root/drivers/scsi/ncr53c8xx.c
diff options
context:
space:
mode:
authorHannes Reinecke <hare@suse.com>2021-08-20 12:54:03 +0300
committerMartin K. Petersen <martin.petersen@oracle.com>2021-08-25 05:56:32 +0300
commit227a13cf12f9d1a35c40033dd00e5cb87a5db932 (patch)
tree6f1ebcce24eb93b2496ff7641418a4f45c4814e1 /drivers/scsi/ncr53c8xx.c
parent98079418c53fff5f9e2d4087f08eaff2a9ce7714 (diff)
downloadlinux-227a13cf12f9d1a35c40033dd00e5cb87a5db932.tar.xz
scsi: ncr53c8xx: Remove 'sync_reset' argument from ncr_reset_bus()
Always '1', so we can remove it. Link: https://lore.kernel.org/r/20210820095405.12801-2-hare@suse.de Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Hannes Reinecke <hare@suse.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/ncr53c8xx.c')
-rw-r--r--drivers/scsi/ncr53c8xx.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/drivers/scsi/ncr53c8xx.c b/drivers/scsi/ncr53c8xx.c
index 09958f78b70f..534fe2cad41b 100644
--- a/drivers/scsi/ncr53c8xx.c
+++ b/drivers/scsi/ncr53c8xx.c
@@ -4553,7 +4553,7 @@ static void ncr_start_reset(struct ncb *np)
**
**==========================================================
*/
-static int ncr_reset_bus (struct ncb *np, struct scsi_cmnd *cmd, int sync_reset)
+static int ncr_reset_bus (struct ncb *np, struct scsi_cmnd *cmd)
{
/* struct scsi_device *device = cmd->device; */
struct ccb *cp;
@@ -4600,11 +4600,10 @@ static int ncr_reset_bus (struct ncb *np, struct scsi_cmnd *cmd, int sync_reset)
ncr_wakeup(np, HS_RESET);
/*
* If the involved command was not in a driver queue, and the
- * scsi driver told us reset is synchronous, and the command is not
- * currently in the waiting list, complete it with DID_RESET status,
- * in order to keep it alive.
+ * command is not currently in the waiting list, complete it
+ * with DID_RESET status in order to keep it alive.
*/
- if (!found && sync_reset && !retrieve_from_waiting_list(0, np, cmd)) {
+ if (!found && !retrieve_from_waiting_list(0, np, cmd)) {
set_host_byte(cmd, DID_RESET);
ncr_queue_done_cmd(np, cmd);
}
@@ -8125,7 +8124,7 @@ static int ncr53c8xx_bus_reset(struct scsi_cmnd *cmd)
*/
spin_lock_irqsave(&np->smp_lock, flags);
- sts = ncr_reset_bus(np, cmd, 1);
+ sts = ncr_reset_bus(np, cmd);
done_list = np->done_list;
np->done_list = NULL;