s3: Slightly simplify Get_Pwnam_alloc
authorVolker Lendecke <vl@samba.org>
Mon, 14 Feb 2011 20:41:00 +0000 (21:41 +0100)
committerVolker Lendecke <vl@samba.org>
Sun, 20 Feb 2011 09:23:29 +0000 (10:23 +0100)
source3/lib/username.c

index d1789a53642a560dfc8f00efe7f367b161f2a1e1..7d3a5413f2fb32173eed23b706fdabd793da0654 100644 (file)
@@ -193,7 +193,6 @@ done:
 struct passwd *Get_Pwnam_alloc(TALLOC_CTX *mem_ctx, const char *user)
 {
        fstring user2;
-       struct passwd *ret;
 
        if ( *user == '\0' ) {
                DEBUG(10,("Get_Pwnam: empty username!\n"));
@@ -204,9 +203,7 @@ struct passwd *Get_Pwnam_alloc(TALLOC_CTX *mem_ctx, const char *user)
 
        DEBUG(5,("Finding user %s\n", user));
 
-       ret = Get_Pwnam_internals(mem_ctx, user, user2);
-
-       return ret;  
+       return Get_Pwnam_internals(mem_ctx, user, user2);
 }
 
 /* The functions below have been taken from password.c and slightly modified */