summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source4/lib/ldb-samba/ldb_wrap.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/source4/lib/ldb-samba/ldb_wrap.c b/source4/lib/ldb-samba/ldb_wrap.c
index b09e68c0a1..299dbf49e7 100644
--- a/source4/lib/ldb-samba/ldb_wrap.c
+++ b/source4/lib/ldb-samba/ldb_wrap.c
@@ -113,13 +113,6 @@ static int ldb_wrap_destructor(struct ldb_wrap *w)
struct ldb_context *ldb;
int ret;
- /* we want to use the existing event context if possible. This
- relies on the fact that in smbd, everything is a child of
- the main event_context */
- if (ev == NULL) {
- return NULL;
- }
-
ldb = ldb_init(mem_ctx, ev);
if (ldb == NULL) {
return NULL;