s3:idmap_rid: untangle assignment from check in idmap_rid_initialize()
authorMichael Adam <obnox@samba.org>
Mon, 21 Jun 2010 15:28:37 +0000 (17:28 +0200)
committerMichael Adam <obnox@samba.org>
Sat, 14 Aug 2010 00:10:54 +0000 (02:10 +0200)
source3/winbindd/idmap_rid.c

index 359bbfd4119e3fe59088e890e262ee43bfc89bb9..10cb98e690779973f4a74dc11a93c725d67bb63e 100644 (file)
@@ -48,7 +48,8 @@ static NTSTATUS idmap_rid_initialize(struct idmap_domain *dom,
        gid_t low_gid = 0;
        gid_t high_gid = 0;
 
        gid_t low_gid = 0;
        gid_t high_gid = 0;
 
-       if ( (ctx = TALLOC_ZERO_P(dom, struct idmap_rid_context)) == NULL ) {
+       ctx = TALLOC_ZERO_P(dom, struct idmap_rid_context);
+       if (ctx == NULL) {
                DEBUG(0, ("Out of memory!\n"));
                return NT_STATUS_NO_MEMORY;
        }
                DEBUG(0, ("Out of memory!\n"));
                return NT_STATUS_NO_MEMORY;
        }