s3:idmap_rid: untangle assignment from check in idmap_rid_initialize()
[amitay/samba.git] / 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;
 
-       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;
        }