summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-11-16 16:22:32 +0100
committerVolker Lendecke <vl@samba.org>2010-11-17 12:17:21 +0100
commitfd9ea77a7169070d869713ba0bde226ce653ad20 (patch)
tree7933b48fd7c08cab8eb255fa5910f0ea8dafeff3
parent0a19617c9785425e3328f82d022930d3fa91e7b3 (diff)
downloadsamba-fd9ea77a7169070d869713ba0bde226ce653ad20.tar.gz
samba-fd9ea77a7169070d869713ba0bde226ce653ad20.tar.bz2
samba-fd9ea77a7169070d869713ba0bde226ce653ad20.zip
"bool ? true : false" is a bit pointless
-rw-r--r--source3/winbindd/winbindd_dual.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source3/winbindd/winbindd_dual.c b/source3/winbindd/winbindd_dual.c
index 5058788e78..cc9d6de21d 100644
--- a/source3/winbindd/winbindd_dual.c
+++ b/source3/winbindd/winbindd_dual.c
@@ -236,8 +236,7 @@ struct tevent_req *wb_domain_request_send(TALLOC_CTX *mem_ctx,
/* The primary domain has to find the DC name itself */
state->init_req->cmd = WINBINDD_INIT_CONNECTION;
fstrcpy(state->init_req->domain_name, domain->name);
- state->init_req->data.init_conn.is_primary =
- domain->primary ? true : false;
+ state->init_req->data.init_conn.is_primary = domain->primary;
fstrcpy(state->init_req->data.init_conn.dcname, "");
subreq = wb_child_request_send(state, ev, &domain->child,