1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-22 22:04:08 +03:00

rpc_client: Slightly simplify rpc_transport_np_init_pipe_open()

Avoid an unnecessary else, use tevent_req_nterror() in if-clause

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
Volker Lendecke 2021-08-17 16:52:24 +02:00 committed by Jeremy Allison
parent 8b45a42bc8
commit 3fb8eebfe3

View File

@ -146,16 +146,16 @@ static void rpc_transport_np_init_pipe_open(struct tevent_req *subreq)
"tevent_timer"));
}
return;
} else if (!NT_STATUS_IS_OK(status)) {
tevent_req_nterror(req, status);
}
if (tevent_req_nterror(req, status)) {
return;
}
status = rpc_transport_tstream_init(state,
&stream,
&state->transport);
if (!NT_STATUS_IS_OK(status)) {
tevent_req_nterror(req, status);
if (tevent_req_nterror(req, status)) {
return;
}