diff options
author | Volker Lendecke <vl@samba.org> | 2010-03-14 19:45:26 +0100 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2010-03-28 19:05:36 +0200 |
commit | 9ecc30837bc75ef1c85191f494d65c7ce9b1ba23 (patch) | |
tree | 6700e0526bf01f6b88b41e4225ae095dfd7e61fc /source3/utils | |
parent | c377a913739fd8fe40926fcf662a52cafabd4ce7 (diff) | |
download | samba-9ecc30837bc75ef1c85191f494d65c7ce9b1ba23.tar.gz samba-9ecc30837bc75ef1c85191f494d65c7ce9b1ba23.tar.bz2 samba-9ecc30837bc75ef1c85191f494d65c7ce9b1ba23.zip |
s3: Slightly simplify unmap_unix_group
Diffstat (limited to 'source3/utils')
-rw-r--r-- | source3/utils/net_sam.c | 5 |
1 files changed, 1 insertions, 4 deletions
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) |