Remove unneeded variable "const struct auth_session_info *session_info"
authorJeremy Allison <jra@samba.org>
Thu, 20 Dec 2012 19:55:09 +0000 (11:55 -0800)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 9 Jan 2013 04:28:42 +0000 (15:28 +1100)
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source3/smbd/uid.c

index 298fa831125c51bcc1ae80f19202d70481db5574..9244f2997d0cd2b265260ba049ce2b8d18c9b995 100644 (file)
@@ -271,7 +271,6 @@ static bool change_to_user_internal(connection_struct *conn,
 
 bool change_to_user(connection_struct *conn, uint64_t vuid)
 {
-       const struct auth_session_info *session_info = NULL;
        struct user_struct *vuser;
        int snum = SNUM(conn);
 
@@ -298,8 +297,7 @@ bool change_to_user(connection_struct *conn, uint64_t vuid)
                return false;
        }
 
-       session_info = vuser->session_info;
-       return change_to_user_internal(conn, session_info, vuid);
+       return change_to_user_internal(conn, vuser->session_info, vuid);
 }
 
 static bool change_to_user_by_session(connection_struct *conn,