[PATCH 2/4] target: Remove unused s_id's

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Joern Engel <joern@xxxxxxxxx>
---
 drivers/scsi/qla2xxx/qla_target.c |   16 ++--------------
 1 files changed, 2 insertions(+), 14 deletions(-)

diff --git a/drivers/scsi/qla2xxx/qla_target.c b/drivers/scsi/qla2xxx/qla_target.c
index 436d5a7..bec97cc 100644
--- a/drivers/scsi/qla2xxx/qla_target.c
+++ b/drivers/scsi/qla2xxx/qla_target.c
@@ -381,16 +381,10 @@ static int qla_tgt_reset(struct scsi_qla_host *vha, void *iocb, int mcmd)
 	uint32_t unpacked_lun, lun = 0;
 	uint16_t loop_id;
 	int res = 0;
-	uint8_t s_id[3];
 	imm_ntfy_from_isp_t *n = (imm_ntfy_from_isp_t *)iocb;
 	atio_from_isp_t *a = (atio_from_isp_t *)iocb;
 
-	memset(&s_id, 0, 3);
-
 	loop_id = le16_to_cpu(n->u.isp24.nport_handle);
-	s_id[0] = n->u.isp24.port_id[0];
-	s_id[1] = n->u.isp24.port_id[1];
-	s_id[2] = n->u.isp24.port_id[2];
 
 	if (loop_id == 0xFFFF) {
 #warning FIXME: Re-enable Global event handling..
@@ -826,7 +820,6 @@ void qla_tgt_fc_port_added(struct scsi_qla_host *vha, fc_port_t *fcport)
 	struct qla_tgt *tgt = ha->qla_tgt;
 	struct qla_tgt_sess *sess;
 	unsigned long flags;
-	unsigned char s_id[3];
 
 	if (!vha->hw->tgt_ops)
 		return;
@@ -843,11 +836,6 @@ void qla_tgt_fc_port_added(struct scsi_qla_host *vha, fc_port_t *fcport)
 	if (!sess) {
 		spin_unlock_irqrestore(&ha->hardware_lock, flags);
 
-		memset(&s_id, 0, 3);
-		s_id[0] = fcport->d_id.b.domain;
-		s_id[1] = fcport->d_id.b.area;
-		s_id[2] = fcport->d_id.b.al_pa;
-
 		mutex_lock(&ha->tgt_mutex);
 		sess = qla_tgt_create_sess(vha, fcport, false);
 		mutex_unlock(&ha->tgt_mutex);
@@ -3871,7 +3859,7 @@ void qla_tgt_async_event(uint16_t code, struct scsi_qla_host *vha, uint16_t *mai
 }
 
 static fc_port_t *qla_tgt_get_port_database(struct scsi_qla_host *vha,
-	const uint8_t *s_id, uint16_t loop_id)
+	uint16_t loop_id)
 {
 	fc_port_t *fcport;
 	int rc;
@@ -3931,7 +3919,7 @@ retry:
 		return NULL;
 	}
 
-	fcport = qla_tgt_get_port_database(vha, s_id, loop_id);
+	fcport = qla_tgt_get_port_database(vha, loop_id);
 	if (!fcport)
 		return NULL;
 
-- 
1.7.9

--
To unsubscribe from this list: send the line "unsubscribe target-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux SCSI]     [Kernel Newbies]     [Linux SCSI Target Infrastructure]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Device Mapper]

  Powered by Linux