From: Volker Lendecke Date: Tue, 16 Feb 2021 16:21:57 +0000 (+0100) Subject: libcli: Simplify tstream_npa_connect_readv_done() X-Git-Tag: tevent-0.11.0~1618 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=833fcdc02467f20dfec3b1e220f8b8db60a7fb5c;p=thirdparty%2Fsamba.git libcli: Simplify tstream_npa_connect_readv_done() tevent_req_error takes care of the ==0 case Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- diff --git a/libcli/named_pipe_auth/npa_tstream.c b/libcli/named_pipe_auth/npa_tstream.c index 90c1e2f4de2..8c07f2e76f9 100644 --- a/libcli/named_pipe_auth/npa_tstream.c +++ b/libcli/named_pipe_auth/npa_tstream.c @@ -253,8 +253,7 @@ static void tstream_npa_connect_readv_done(struct tevent_req *subreq) err = tstream_u32_read_recv(subreq, state, &in.data, &in.length); TALLOC_FREE(subreq); - if (err != 0) { - tevent_req_error(req, err); + if (tevent_req_error(req, err)) { return; }