]> git.karo-electronics.de Git - mv-sheeva.git/commitdiff
[SCSI] iscsi class: remove unused active variable
authorMike Christie <michaelc@cs.wisc.edu>
Wed, 16 Feb 2011 21:04:34 +0000 (15:04 -0600)
committerJames Bottomley <James.Bottomley@suse.de>
Thu, 24 Feb 2011 17:41:07 +0000 (12:41 -0500)
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>
drivers/scsi/scsi_transport_iscsi.c
include/scsi/scsi_transport_iscsi.h

index 4e09b68a07897d1b32abe1d134e5158687b8fdd8..a631e58894f1c4fb85acd533fcf5afe5630eeda5 100644 (file)
@@ -976,7 +976,6 @@ iscsi_create_conn(struct iscsi_cls_session *session, int dd_size, uint32_t cid)
 
        spin_lock_irqsave(&connlock, flags);
        list_add(&conn->conn_list, &connlist);
-       conn->active = 1;
        spin_unlock_irqrestore(&connlock, flags);
 
        ISCSI_DBG_TRANS_CONN(conn, "Completed conn creation\n");
@@ -1002,7 +1001,6 @@ int iscsi_destroy_conn(struct iscsi_cls_conn *conn)
        unsigned long flags;
 
        spin_lock_irqsave(&connlock, flags);
-       conn->active = 0;
        list_del(&conn->conn_list);
        spin_unlock_irqrestore(&connlock, flags);
 
index b9ba349ef257bd97b210a62428524478164ba6aa..00e5bf7c9de6b88926d7e003f97a4080ec614611 100644 (file)
@@ -163,7 +163,6 @@ struct iscsi_cls_conn {
        struct mutex ep_mutex;
        struct iscsi_endpoint *ep;
 
-       int active;                     /* must be accessed with the connlock */
        struct device dev;              /* sysfs transport/container device */
 };