diff options
author | Mike Christie <michaelc@cs.wisc.edu> | 2011-02-16 16:04:34 -0500 |
---|---|---|
committer | James Bottomley <James.Bottomley@suse.de> | 2011-02-24 12:41:07 -0500 |
commit | bbc5261b2cb5e69754c935ea2466fb22775f0e48 (patch) | |
tree | 76ef77c44abca779418d74b53325ebd6f0b46132 /drivers | |
parent | 22a39fbbfecfea703b686a4626a631d706ccb3ee (diff) |
[SCSI] iscsi class: remove unused active variable
The active variable on the iscsi_cls_conn is not used
so this patch removes it.
Signed-off-by: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/scsi/scsi_transport_iscsi.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/scsi/scsi_transport_iscsi.c b/drivers/scsi/scsi_transport_iscsi.c index 4e09b68a0789..a631e58894f1 100644 --- a/drivers/scsi/scsi_transport_iscsi.c +++ b/drivers/scsi/scsi_transport_iscsi.c | |||
@@ -976,7 +976,6 @@ iscsi_create_conn(struct iscsi_cls_session *session, int dd_size, uint32_t cid) | |||
976 | 976 | ||
977 | spin_lock_irqsave(&connlock, flags); | 977 | spin_lock_irqsave(&connlock, flags); |
978 | list_add(&conn->conn_list, &connlist); | 978 | list_add(&conn->conn_list, &connlist); |
979 | conn->active = 1; | ||
980 | spin_unlock_irqrestore(&connlock, flags); | 979 | spin_unlock_irqrestore(&connlock, flags); |
981 | 980 | ||
982 | ISCSI_DBG_TRANS_CONN(conn, "Completed conn creation\n"); | 981 | ISCSI_DBG_TRANS_CONN(conn, "Completed conn creation\n"); |
@@ -1002,7 +1001,6 @@ int iscsi_destroy_conn(struct iscsi_cls_conn *conn) | |||
1002 | unsigned long flags; | 1001 | unsigned long flags; |
1003 | 1002 | ||
1004 | spin_lock_irqsave(&connlock, flags); | 1003 | spin_lock_irqsave(&connlock, flags); |
1005 | conn->active = 0; | ||
1006 | list_del(&conn->conn_list); | 1004 | list_del(&conn->conn_list); |
1007 | spin_unlock_irqrestore(&connlock, flags); | 1005 | spin_unlock_irqrestore(&connlock, flags); |
1008 | 1006 | ||