librpc/rpc: simplify tevent_req_nterror() usage in binding_handle.c
authorStefan Metzmacher <metze@samba.org>
Fri, 30 Aug 2013 07:48:06 +0000 (09:48 +0200)
committerStefan Metzmacher <metze@samba.org>
Wed, 8 Jan 2014 13:34:36 +0000 (14:34 +0100)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
librpc/rpc/binding_handle.c

index 1e11b048de354992193a936c6f83bc75110f1e7e..ef2b7bd4b444b4d4182722e8b6142abdb852f182 100644 (file)
@@ -180,8 +180,7 @@ static void dcerpc_binding_handle_raw_call_done(struct tevent_req *subreq)
                                          &state->out_length,
                                          &state->out_flags);
        TALLOC_FREE(subreq);
-       if (!NT_STATUS_IS_OK(error)) {
-               tevent_req_nterror(req, error);
+       if (tevent_req_nterror(req, error)) {
                return;
        }
 
@@ -313,8 +312,7 @@ static void dcerpc_binding_handle_disconnect_done(struct tevent_req *subreq)
 
        error = state->ops->disconnect_recv(subreq);
        TALLOC_FREE(subreq);
-       if (!NT_STATUS_IS_OK(error)) {
-               tevent_req_nterror(req, error);
+       if (tevent_req_nterror(req, error)) {
                return;
        }
 
@@ -466,8 +464,7 @@ static void dcerpc_binding_handle_call_done(struct tevent_req *subreq)
                                                    &state->response.length,
                                                    &out_flags);
        TALLOC_FREE(subreq);
-       if (!NT_STATUS_IS_OK(error)) {
-               tevent_req_nterror(req, error);
+       if (tevent_req_nterror(req, error)) {
                return;
        }