Skip to contentSkip to conversation

qla2xxx: Remove last vestiges of qla_tgt_cmd.cmd_list

PATCH Applied Roland Dreier 2 participants 2 messages Jan 31, 2014

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 qla2xxx: Remove last vestiges of qla_tgt_cmd.cmd_list

From: Roland Dreier <[email protected]>

The only place this struct member is touched is in one INIT_LIST_HEAD.

---
 drivers/scsi/qla2xxx/qla_target.c | 2 --
 drivers/scsi/qla2xxx/qla_target.h | 1 -
 2 files changed, 3 deletions(-)
drivers/scsi/qla2xxx/qla_target.c +0 -2
index 38a1257e76e1..2f42b650367c 100644
@@ -2593,8 +2593,6 @@ static int qlt_handle_cmd_for_atio(struct scsi_qla_host *vha,
 		return -ENOMEM;
 	}
 
-	INIT_LIST_HEAD(&cmd->cmd_list);
-
 	memcpy(&cmd->atio, atio, sizeof(*atio));
 	cmd->state = QLA_TGT_STATE_NEW;
 	cmd->tgt = ha->tgt.qla_tgt;
drivers/scsi/qla2xxx/qla_target.h +0 -1
index b33e411f28a0..f4a4beee2b96 100644
@@ -855,7 +855,6 @@ struct qla_tgt_cmd {
 	uint16_t loop_id;	/* to save extra sess dereferences */
 	struct qla_tgt *tgt;	/* to save extra sess dereferences */
 	struct scsi_qla_host *vha;
-	struct list_head cmd_list;
 
 	struct atio_from_isp atio;
 };
Signature · 1 line
1.9.rc1
#1 lore raw
Quoted 6 lines · Roland Dreier

From: Roland Dreier <[email protected]>

The only place this struct member is touched is in one INIT_LIST_HEAD.

---

Applied to target-pending/queue.

Thanks Roland!

--nab

Quoted 29 lines
 drivers/scsi/qla2xxx/qla_target.c | 2 --
 drivers/scsi/qla2xxx/qla_target.h | 1 -
 2 files changed, 3 deletions(-)
drivers/scsi/qla2xxx/qla_target.c +0 -2
index 38a1257e76e1..2f42b650367c 100644
@@ -2593,8 +2593,6 @@ static int qlt_handle_cmd_for_atio(struct scsi_qla_host *vha,
 		return -ENOMEM;
 	}
 
-	INIT_LIST_HEAD(&cmd->cmd_list);
-
 	memcpy(&cmd->atio, atio, sizeof(*atio));
 	cmd->state = QLA_TGT_STATE_NEW;
 	cmd->tgt = ha->tgt.qla_tgt;
drivers/scsi/qla2xxx/qla_target.h +0 -1
index b33e411f28a0..f4a4beee2b96 100644
@@ -855,7 +855,6 @@ struct qla_tgt_cmd {
 	uint16_t loop_id;	/* to save extra sess dereferences */
 	struct qla_tgt *tgt;	/* to save extra sess dereferences */
 	struct scsi_qla_host *vha;
-	struct list_head cmd_list;
 
 	struct atio_from_isp atio;
 };