[PATCH 07/36] target: Don't do tmr_notify on empty aborted list

Thinh Nguyen
2022-07-06T23:35:13Z

If there's no command to abort, just skip doing tmr_notify to an empty
list.

Signed-off-by: Thinh Nguyen <Thinh.Nguyen@synopsys.com>
---
drivers/target/target_core_tmr.c | 3 ---
1 file changed, 3 deletions(-)

diff --git a/drivers/target/target_core_tmr.c b/drivers/target/target_core_tmr.c
index 724ddabda488..718d985e4860 100644
--- a/drivers/target/target_core_tmr.c
+++ b/drivers/target/target_core_tmr.c
@@ -167,9 +167,6 @@ void core_tmr_abort_task(
spin_unlock_irqrestore(&dev->queues[i].lock, flags);
}

- if (dev->transport->tmr_notify)
- dev->transport->tmr_notify(dev, TMR_ABORT_TASK, &aborted_list);
-
printk("ABORT_TASK: Sending TMR_FUNCTION_COMPLETE for ref_tag: %lld\n",
tmr->ref_task_tag);
tmr->response = TMR_FUNCTION_COMPLETE;
--
2.28.0