aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/s390/scsi/zfcp_def.h
diff options
context:
space:
mode:
authorChristof Schmitt <christof.schmitt@de.ibm.com>2010-02-17 05:18:49 -0500
committerJames Bottomley <James.Bottomley@suse.de>2010-02-17 18:46:17 -0500
commite60a6d69f1f84c2ef1cc63aefaadfe7ae9f12934 (patch)
tree82d93610abd9c859eb43675b095583b17253309d /drivers/s390/scsi/zfcp_def.h
parentcae727db30e9bcbc0256ec3282edce98b4a85433 (diff)
[SCSI] zfcp: Remove function zfcp_reqlist_find_safe
Always use the FSF request id as a reference to the FSF request. With this change the function zfcp_reqlist_find_safe is no longer needed and can be removed. Reviewed-by: Swen Schillig <swen@vnet.ibm.com> Signed-off-by: Christof Schmitt <christof.schmitt@de.ibm.com> Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers/s390/scsi/zfcp_def.h')
-rw-r--r--drivers/s390/scsi/zfcp_def.h17
1 files changed, 1 insertions, 16 deletions
diff --git a/drivers/s390/scsi/zfcp_def.h b/drivers/s390/scsi/zfcp_def.h
index e1b5b88e2ddb..6ed48654c299 100644
--- a/drivers/s390/scsi/zfcp_def.h
+++ b/drivers/s390/scsi/zfcp_def.h
@@ -143,8 +143,7 @@ struct zfcp_erp_action {
143 struct zfcp_unit *unit; 143 struct zfcp_unit *unit;
144 u32 status; /* recovery status */ 144 u32 status; /* recovery status */
145 u32 step; /* active step of this erp action */ 145 u32 step; /* active step of this erp action */
146 struct zfcp_fsf_req *fsf_req; /* fsf request currently pending 146 unsigned long fsf_req_id;
147 for this action */
148 struct timer_list timer; 147 struct timer_list timer;
149}; 148};
150 149
@@ -379,18 +378,4 @@ zfcp_reqlist_find(struct zfcp_adapter *adapter, unsigned long req_id)
379 return NULL; 378 return NULL;
380} 379}
381 380
382static inline struct zfcp_fsf_req *
383zfcp_reqlist_find_safe(struct zfcp_adapter *adapter, struct zfcp_fsf_req *req)
384{
385 struct zfcp_fsf_req *request;
386 unsigned int idx;
387
388 for (idx = 0; idx < REQUEST_LIST_SIZE; idx++) {
389 list_for_each_entry(request, &adapter->req_list[idx], list)
390 if (request == req)
391 return request;
392 }
393 return NULL;
394}
395
396#endif /* ZFCP_DEF_H */ 381#endif /* ZFCP_DEF_H */