Commit bbc5261b2cb5e69754c935ea2466fb22775f0e48

Authored by Mike Christie
Committed by James Bottomley
1 parent 22a39fbbfe

[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>

Showing 2 changed files with 0 additions and 3 deletions Side-by-side Diff

drivers/scsi/scsi_transport_iscsi.c
... ... @@ -976,7 +976,6 @@
976 976  
977 977 spin_lock_irqsave(&connlock, flags);
978 978 list_add(&conn->conn_list, &connlist);
979   - conn->active = 1;
980 979 spin_unlock_irqrestore(&connlock, flags);
981 980  
982 981 ISCSI_DBG_TRANS_CONN(conn, "Completed conn creation\n");
... ... @@ -1002,7 +1001,6 @@
1002 1001 unsigned long flags;
1003 1002  
1004 1003 spin_lock_irqsave(&connlock, flags);
1005   - conn->active = 0;
1006 1004 list_del(&conn->conn_list);
1007 1005 spin_unlock_irqrestore(&connlock, flags);
1008 1006  
include/scsi/scsi_transport_iscsi.h
... ... @@ -163,7 +163,6 @@
163 163 struct mutex ep_mutex;
164 164 struct iscsi_endpoint *ep;
165 165  
166   - int active; /* must be accessed with the connlock */
167 166 struct device dev; /* sysfs transport/container device */
168 167 };
169 168