idmap-autorid: Remove an unused variable
authorVolker Lendecke <vl@samba.org>
Tue, 8 Mar 2011 20:48:44 +0000 (21:48 +0100)
committerVolker Lendecke <vl@samba.org>
Fri, 18 Mar 2011 14:46:37 +0000 (15:46 +0100)
Signed-off-by: Christian Ambach <christian.ambach@de.ibm.com>
source3/winbindd/idmap_autorid.c

index e814d0da1ff46f605370859e4ef4423b88b46126..437c03800da17125ff879ac030244c1045b6db96 100644 (file)
@@ -225,7 +225,6 @@ static NTSTATUS idmap_autorid_unixids_to_sids(struct idmap_domain *dom,
                                              struct id_map **ids)
 {
        struct autorid_global_config *globalcfg;
-       TALLOC_CTX *ctx;
        NTSTATUS ret;
        int i;
 
@@ -237,12 +236,6 @@ static NTSTATUS idmap_autorid_unixids_to_sids(struct idmap_domain *dom,
        globalcfg = talloc_get_type(dom->private_data,
                                    struct autorid_global_config);
 
-       ctx = talloc_new(dom);
-       if (!ctx) {
-               DEBUG(0, ("Out of memory!\n"));
-               return NT_STATUS_NO_MEMORY;
-       }
-
        for (i = 0; ids[i]; i++) {
 
                ret = idmap_autorid_id_to_sid(globalcfg, ids[i]);
@@ -255,14 +248,10 @@ static NTSTATUS idmap_autorid_unixids_to_sids(struct idmap_domain *dom,
                        goto failure;
                }
        }
-
-       talloc_free(ctx);
        return NT_STATUS_OK;
 
       failure:
-       talloc_free(ctx);
        return ret;
-
 }
 
 /**********************************