diff --git a/drivers/scsi/hisi_sas/hisi_sas_main.c b/drivers/scsi/hisi_sas/hisi_sas_main.c index 6bccd36556f2024ee293f5200c927089aae36495..9637094e684090ad18fe2026cb8387dbf4683bcf 100644 --- a/drivers/scsi/hisi_sas/hisi_sas_main.c +++ b/drivers/scsi/hisi_sas/hisi_sas_main.c @@ -1009,10 +1009,6 @@ static void hisi_sas_do_release_task(struct hisi_hba *hisi_hba, struct sas_task if (!slot->is_internal && task->task_proto != SAS_PROTOCOL_SMP) task->task_state_flags |= SAS_TASK_STATE_DONE; spin_unlock_irqrestore(&task->task_state_lock, flags); - - if (slot->is_internal || (task->task_proto == SAS_PROTOCOL_SMP)) - if (task->task_done) - task->task_done(task); } hisi_sas_slot_task_free(hisi_hba, task, slot, need_lock);