[SCSI] zfcp: dead code removal
authorMartin Peschke <mpeschke@linux.vnet.ibm.com>
Thu, 22 Aug 2013 15:49:33 +0000 (17:49 +0200)
committerJames Bottomley <JBottomley@Parallels.com>
Tue, 3 Sep 2013 14:27:56 +0000 (07:27 -0700)
Get rid of unused function zfcp_fsf_get_req and corresponding
prototype definition.

Commit a54ca0f62f953898b05549391ac2a8a4dad6482b in v2.6.28
"[SCSI] zfcp: Redesign of the debug tracing for HBA records."
accidentally introduced this code which was dead in the first place.

Signed-off-by: Martin Peschke <mpeschke@linux.vnet.ibm.com>
Signed-off-by: Steffen Maier <maier@linux.vnet.ibm.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/s390/scsi/zfcp_ext.h
drivers/s390/scsi/zfcp_fsf.c

index 83e3f1408c38324b75ed999173640616768dd5c7..a9c570a09b85595f9dc085e1016a66999fad7ea8 100644 (file)
@@ -126,8 +126,6 @@ extern int zfcp_qdio_sbals_from_sg(struct zfcp_qdio *, struct zfcp_qdio_req *,
 extern int zfcp_qdio_open(struct zfcp_qdio *);
 extern void zfcp_qdio_close(struct zfcp_qdio *);
 extern void zfcp_qdio_siosl(struct zfcp_adapter *);
-extern struct zfcp_fsf_req *zfcp_fsf_get_req(struct zfcp_qdio *,
-                                            struct qdio_buffer *);
 
 /* zfcp_scsi.c */
 extern struct scsi_transport_template *zfcp_scsi_transport_template;
index 2a3e6cb814a9fa889d285efc29784f25534f1c58..0fe8d5d951196425871d958c4003f773f8c4a3e2 100644 (file)
@@ -2388,12 +2388,3 @@ void zfcp_fsf_reqid_check(struct zfcp_qdio *qdio, int sbal_idx)
                        break;
        }
 }
-
-struct zfcp_fsf_req *zfcp_fsf_get_req(struct zfcp_qdio *qdio,
-                                     struct qdio_buffer *sbal)
-{
-       struct qdio_buffer_element *sbale = &sbal->element[0];
-       u64 req_id = (unsigned long) sbale->addr;
-
-       return zfcp_reqlist_find(qdio->adapter->req_list, req_id);
-}