From: Mike Christie Date: Tue, 30 May 2006 05:37:25 +0000 (-0500) Subject: [SCSI] iscsi: return task found during search X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=040515f53c09047c76ad074dc6a280984dc84b04;p=linux-beck.git [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 Signed-off-by: James Bottomley --- diff --git a/drivers/scsi/libiscsi.c b/drivers/scsi/libiscsi.c index a223413e1564..256b87a85978 100644 --- a/drivers/scsi/libiscsi.c +++ b/drivers/scsi/libiscsi.c @@ -985,7 +985,7 @@ iscsi_remove_##tasktype(struct kfifo *fifo, uint32_t itt) \ \ if (task->itt == itt) { \ debug_scsi("matched task\n"); \ - break; \ + return task; \ } \ \ __kfifo_put(fifo, (void*)&task, sizeof(void*)); \