remove meaningless checks
authoridra <idra@0c0555d6-39d7-0310-84fc-f1cc0bd64818>
Wed, 13 Dec 2006 18:29:00 +0000 (18:29 +0000)
committeridra <idra@0c0555d6-39d7-0310-84fc-f1cc0bd64818>
Wed, 13 Dec 2006 18:29:00 +0000 (18:29 +0000)
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_0@20151 0c0555d6-39d7-0310-84fc-f1cc0bd64818

source/nsswitch/idmap_rid.c

index bbba1bd0111091c66133a90fc3e14ab6cdc8e099..83818711a2f9ca6783b6a09562979b1d22de3c21 100644 (file)
@@ -86,10 +86,6 @@ static NTSTATUS idmap_rid_id_to_sid(TALLOC_CTX *memctx, struct idmap_rid_context
        char *domname, *name;
        enum lsa_SidType sid_type;
 
-       if (!memctx || !ctx || !map) {
-               return NT_STATUS_INVALID_PARAMETER;
-       }
-
        /* apply filters before checking */
        if ((map->xid.id < ctx->low_id) || (map->xid.id > ctx->high_id)) {
                DEBUG(5, ("Requested id (%u) out of range (%u - %u). Filtered!\n",
@@ -142,10 +138,6 @@ static NTSTATUS idmap_rid_sid_to_id(TALLOC_CTX *memctx, struct idmap_rid_context
        enum lsa_SidType sid_type;
        uint32_t rid;
 
-       if (!memctx || !ctx || !map) {
-               return NT_STATUS_INVALID_PARAMETER;
-       }
-
        sid_peek_rid(map->sid, &rid);
        map->xid.id = rid - ctx->base_rid + ctx->low_id;