[SCSI] iscsi: return task found during search
from davidw@netapp.com:
remove task type should return a task on success.
Signed-off-by: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
diff --git a/drivers/scsi/libiscsi.c b/drivers/scsi/libiscsi.c
index a223413..256b87a 100644
--- a/drivers/scsi/libiscsi.c
+++ b/drivers/scsi/libiscsi.c
@@ -985,7 +985,7 @@
\
if (task->itt == itt) { \
debug_scsi("matched task\n"); \
- break; \
+ return task; \
} \
\
__kfifo_put(fifo, (void*)&task, sizeof(void*)); \