]> git.openfabrics.org - ~emulex/infiniband.git/commitdiff
qla2xxx: Remove unused function
authorJörn Engel <joern@logfs.org>
Mon, 18 Mar 2013 22:29:53 +0000 (18:29 -0400)
committerNicholas Bellinger <nab@linux-iscsi.org>
Thu, 25 Apr 2013 08:05:23 +0000 (01:05 -0700)
It was already unused when first introduced in 2d70c103.

Signed-off-by: Joern Engel <joern@logfs.org>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/scsi/qla2xxx/qla_target.c
drivers/scsi/qla2xxx/qla_target.h

index 61b5d8c2b5daee66a4249e05c8b993c0918241eb..fcdc22306cab84b386ecaabde8234362e555b922 100644 (file)
@@ -2585,25 +2585,6 @@ static void qlt_do_ctio_completion(struct scsi_qla_host *vha, uint32_t handle,
        ha->tgt.tgt_ops->free_cmd(cmd);
 }
 
-/* ha->hardware_lock supposed to be held on entry */
-/* called via callback from qla2xxx */
-void qlt_ctio_completion(struct scsi_qla_host *vha, uint32_t handle)
-{
-       struct qla_hw_data *ha = vha->hw;
-       struct qla_tgt *tgt = ha->tgt.qla_tgt;
-
-       if (likely(tgt == NULL)) {
-               ql_dbg(ql_dbg_tgt, vha, 0xe021,
-                   "CTIO, but target mode not enabled"
-                   " (ha %d %p handle %#x)", vha->vp_idx, ha, handle);
-               return;
-       }
-
-       tgt->irq_cmd_count++;
-       qlt_do_ctio_completion(vha, handle, CTIO_SUCCESS, NULL);
-       tgt->irq_cmd_count--;
-}
-
 static inline int qlt_get_fcp_task_attr(struct scsi_qla_host *vha,
        uint8_t task_codes)
 {
index ff9ccb9fd036f446fceef58b464bff7f0dfa374c..b33e411f28a0754e4a6cf3886d098d6d494b72d8 100644 (file)
@@ -980,7 +980,6 @@ extern int qlt_xmit_response(struct qla_tgt_cmd *, int, uint8_t);
 extern void qlt_xmit_tm_rsp(struct qla_tgt_mgmt_cmd *);
 extern void qlt_free_mcmd(struct qla_tgt_mgmt_cmd *);
 extern void qlt_free_cmd(struct qla_tgt_cmd *cmd);
-extern void qlt_ctio_completion(struct scsi_qla_host *, uint32_t);
 extern void qlt_async_event(uint16_t, struct scsi_qla_host *, uint16_t *);
 extern void qlt_enable_vha(struct scsi_qla_host *);
 extern void qlt_vport_create(struct scsi_qla_host *, struct qla_hw_data *);