summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2006-12-13 18:29:00 +0000
committerSimo Sorce <idra@samba.org>2006-12-13 18:29:00 +0000
commit58733f9eb1242086abda0179d651195283ce053a (patch)
tree3e8c1caadf3b04bc09de2d0aff2047dd5ca70bd9
parent7c7010c3dd22292865b39f232a0c34ce503b8801 (diff)
downloadsamba-58733f9eb1242086abda0179d651195283ce053a.tar.gz
samba-58733f9eb1242086abda0179d651195283ce053a.tar.xz
samba-58733f9eb1242086abda0179d651195283ce053a.zip
r20151: remove meaningless checks
-rw-r--r--source/nsswitch/idmap_rid.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/source/nsswitch/idmap_rid.c b/source/nsswitch/idmap_rid.c
index bbba1bd0111..83818711a2f 100644
--- a/source/nsswitch/idmap_rid.c
+++ b/source/nsswitch/idmap_rid.c
@@ -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;