[PATCH v2 65/84] qla4xxx: Call scsi_done() directly

Bart Van Assche
2021-09-29T22:08:02Z

drivers/scsi/qla4xxx/ql4_os.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/scsi/qla4xxx/ql4_os.c b/drivers/scsi/qla4xxx/ql4_os.c
index f1ea65c6e5f5..76d0b59a9982 100644
--- a/drivers/scsi/qla4xxx/ql4_os.c
+++ b/drivers/scsi/qla4xxx/ql4_os.c
@@ -4080,7 +4080,7 @@ void qla4xxx_srb_compl(struct kref *ref)

mempool_free(srb, ha->srb_mempool);

- cmd->scsi_done(cmd);
+ scsi_done(cmd);
}

/**
@@ -4154,7 +4154,7 @@ static int qla4xxx_queuecommand(struct Scsi_Host *host, struct scsi_cmnd *cmd)
return SCSI_MLQUEUE_HOST_BUSY;

qc_fail_command:
- cmd->scsi_done(cmd);
+ scsi_done(cmd);

return 0;
}