From 9ecc30837bc75ef1c85191f494d65c7ce9b1ba23 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sun, 14 Mar 2010 19:45:26 +0100 Subject: s3: Slightly simplify unmap_unix_group --- source3/utils/net_sam.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'source3') diff --git a/source3/utils/net_sam.c b/source3/utils/net_sam.c index 6e3ccfefaf..5c3f4e5b96 100644 --- a/source3/utils/net_sam.c +++ b/source3/utils/net_sam.c @@ -894,7 +894,6 @@ static int net_sam_mapunixgroup(struct net_context *c, int argc, const char **ar static NTSTATUS unmap_unix_group(const struct group *grp, GROUP_MAP *pmap) { - NTSTATUS status; GROUP_MAP map; const char *grpname; DOM_SID dom_sid; @@ -914,9 +913,7 @@ static NTSTATUS unmap_unix_group(const struct group *grp, GROUP_MAP *pmap) return NT_STATUS_UNSUCCESSFUL; } - status = pdb_delete_group_mapping_entry(dom_sid); - - return status; + return pdb_delete_group_mapping_entry(dom_sid); } static int net_sam_unmapunixgroup(struct net_context *c, int argc, const char **argv) -- cgit