Author: idra
Date: 2006-12-13 18:29:00 +0000 (Wed, 13 Dec 2006)
New Revision: 20151

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=20151

Log:

remove meaningless checks


Modified:
   branches/SAMBA_3_0/source/nsswitch/idmap_rid.c


Changeset:
Modified: branches/SAMBA_3_0/source/nsswitch/idmap_rid.c
===================================================================
--- branches/SAMBA_3_0/source/nsswitch/idmap_rid.c      2006-12-13 16:39:50 UTC 
(rev 20150)
+++ branches/SAMBA_3_0/source/nsswitch/idmap_rid.c      2006-12-13 18:29:00 UTC 
(rev 20151)
@@ -86,10 +86,6 @@
        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 @@
        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;
 

Reply via email to