From 7f9da1ed660e45e276778187260ddbbf411c761e Mon Sep 17 00:00:00 2001
From: Jakub Hrozek <jhrozek@redhat.com>
Date: Wed, 5 Feb 2014 16:40:41 +0100
Subject: [PATCH 83/84] AD: Remove dead code
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Reviewed-by: Pavel Březina <pbrezina@redhat.com>
(cherry picked from commit d3436880c0ec1a7776698c739d4a3edc9a6ac57c)
---
src/providers/ad/ad_id.c | 8 --------
1 file changed, 8 deletions(-)
diff --git a/src/providers/ad/ad_id.c b/src/providers/ad/ad_id.c
index 2d3c11bb838f1418c006f9d79d8552cec1443e66..87af656b364344a8ef27a444e5dfcf8848939110 100644
--- a/src/providers/ad/ad_id.c
+++ b/src/providers/ad/ad_id.c
@@ -634,7 +634,6 @@ ad_enumeration_done(struct tevent_req *subreq)
struct tevent_req);
struct ad_enumeration_state *state = tevent_req_data(req,
struct ad_enumeration_state);
- struct ad_id_ctx *subdom_id_ctx;
ret = sdap_dom_enum_ex_recv(subreq);
talloc_zfree(subreq);
@@ -666,13 +665,6 @@ ad_enumeration_done(struct tevent_req *subreq)
state->sditer->dom->enumerate == false);
if (state->sditer != NULL) {
- subdom_id_ctx = talloc_get_type(state->sdom->pvt, struct ad_id_ctx);
- if (subdom_id_ctx == NULL) {
- DEBUG(SSSDBG_CRIT_FAILURE, ("Cannot retrieve subdomain ad_id_ctx!\n"));
- tevent_req_error(req, EFAULT);
- return;
- }
-
ret = ad_enum_sdom(req, state->sditer, state->sditer->pvt);
if (ret != EOK) {
DEBUG(SSSDBG_OP_FAILURE, ("Could not enumerate domain %s\n",
--
1.8.5.3