From 788bfc8a25849bccc963a4b948c1e5857f2d885c Mon Sep 17 00:00:00 2001 From: Anatoliy Atanasov Date: Fri, 10 Sep 2010 13:44:20 +0300 Subject: s4/fsmo: Change return type from NTSTATUS to WERROR for drepl_takeFSMOrole This removed an unnecessary conversion of the return type in drepl_take_FSMO_role. --- source4/dsdb/repl/drepl_service.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source4/dsdb/repl') diff --git a/source4/dsdb/repl/drepl_service.c b/source4/dsdb/repl/drepl_service.c index 1423827847..2c436172f1 100644 --- a/source4/dsdb/repl/drepl_service.c +++ b/source4/dsdb/repl/drepl_service.c @@ -347,7 +347,7 @@ static NTSTATUS drepl_take_FSMO_role(struct irpc_message *msg, { struct dreplsrv_service *service = talloc_get_type(msg->private_data, struct dreplsrv_service); - r->out.result = werror_to_ntstatus(dreplsrv_fsmo_role_check(service, r->in.role)); + r->out.result = dreplsrv_fsmo_role_check(service, r->in.role); return NT_STATUS_OK; } -- cgit