]> git.karo-electronics.de Git - linux-beck.git/commitdiff
target: make target_put_session void
authorJörn Engel <joern@logfs.org>
Fri, 11 May 2012 14:35:08 +0000 (10:35 -0400)
committerNicholas Bellinger <nab@linux-iscsi.org>
Fri, 11 May 2012 22:01:52 +0000 (15:01 -0700)
No real change, it effectively already was.

Signed-off-by: Joern Engel <joern@logfs.org>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/target_core_transport.c
include/target/target_core_fabric.h

index 397e8bd4d5965f0b7db58174ca345f5458312155..eeb16b1ad01ae052f51e20a5e13e0f1f31322e0c 100644 (file)
@@ -330,9 +330,9 @@ void target_get_session(struct se_session *se_sess)
 }
 EXPORT_SYMBOL(target_get_session);
 
-int target_put_session(struct se_session *se_sess)
+void target_put_session(struct se_session *se_sess)
 {
-       return kref_put(&se_sess->sess_kref, target_release_session);
+       kref_put(&se_sess->sess_kref, target_release_session);
 }
 EXPORT_SYMBOL(target_put_session);
 
index 9007833ac5ca172330585f883fb7e930071e5260..116959933f46442b27075ba7d40c79c746308049 100644 (file)
@@ -96,7 +96,7 @@ void  __transport_register_session(struct se_portal_group *,
 void   transport_register_session(struct se_portal_group *,
                struct se_node_acl *, struct se_session *, void *);
 void   target_get_session(struct se_session *);
-int    target_put_session(struct se_session *);
+void   target_put_session(struct se_session *);
 void   transport_free_session(struct se_session *);
 void   target_put_nacl(struct se_node_acl *);
 void   transport_deregister_session_configfs(struct se_session *);