[PATCH v2 18/84] advansys: Call scsi_done() directly

Bart Van Assche
2021-09-29T22:06:51Z

drivers/scsi/advansys.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/scsi/advansys.c b/drivers/scsi/advansys.c
index e341b3372482..9ff8b1009450 100644
--- a/drivers/scsi/advansys.c
+++ b/drivers/scsi/advansys.c
@@ -3592,7 +3592,7 @@ static void asc_scsi_done(struct scsi_cmnd *scp)
{
scsi_dma_unmap(scp);
ASC_STATS(scp->device->host, done);
- scp->scsi_done(scp);
+ scsi_done(scp);
}

static void AscSetBank(PortAddr iop_base, uchar bank)
@@ -8460,7 +8460,6 @@ advansys_queuecommand_lck(struct scsi_cmnd *scp, void (*done)(struct scsi_cmnd *
int asc_res, result = 0;

ASC_STATS(shost, queuecommand);
- scp->scsi_done = done;

asc_res = asc_execute_scsi_cmnd(scp);