From: Volker Lendecke Date: Fri, 6 Aug 2021 10:12:31 +0000 (+0200) Subject: rpc_client: Simplify get_complete_frag_got_header() X-Git-Tag: ldb-2.5.0~855 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7df7bf44e55d4ca63f3cf22a6d75efe28cf64371;p=thirdparty%2Fsamba.git rpc_client: Simplify get_complete_frag_got_header() tevent_req_nterror() returns a bool, no separate check required Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- diff --git a/source3/rpc_client/cli_pipe.c b/source3/rpc_client/cli_pipe.c index fcc5cd53f03..a94620dc52f 100644 --- a/source3/rpc_client/cli_pipe.c +++ b/source3/rpc_client/cli_pipe.c @@ -325,8 +325,7 @@ static void get_complete_frag_got_header(struct tevent_req *subreq) status = rpc_read_recv(subreq); TALLOC_FREE(subreq); - if (!NT_STATUS_IS_OK(status)) { - tevent_req_nterror(req, status); + if (tevent_req_nterror(req, status)) { return; }