From 5e483ab14785faf5bc011e36ac07646a624c3962 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Thu, 20 Dec 2012 11:55:09 -0800 Subject: Remove unneeded variable "const struct auth_session_info *session_info" Signed-off-by: Jeremy Allison Reviewed-by: Stefan Metzmacher Reviewed-by: Andrew Bartlett --- source3/smbd/uid.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'source3/smbd/uid.c') diff --git a/source3/smbd/uid.c b/source3/smbd/uid.c index 298fa83112..9244f2997d 100644 --- a/source3/smbd/uid.c +++ b/source3/smbd/uid.c @@ -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, -- cgit