]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
mdssvc: fold two if blocks into one
authorRalph Boehme <slow@samba.org>
Fri, 19 Nov 2021 15:50:44 +0000 (16:50 +0100)
committerNoel Power <npower@samba.org>
Wed, 3 Aug 2022 13:00:36 +0000 (13:00 +0000)
No change in behaviour.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=14915

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Noel Power <npower@samba.org>
source3/rpc_server/mdssvc/mdssvc_es.c

index b9c9e5ca89335524ddb63952565287de0ed7bfab..97e0d99fed2b648e4b9c2bd6b85008e91d31e934 100644 (file)
@@ -728,11 +728,7 @@ static void mds_es_search_http_read_done(struct tevent_req *subreq)
                return;
        }
 
-       if (slq == NULL) {
-               tevent_req_done(req);
-               return;
-       }
-       if (s->mds_es_ctx == NULL) {
+       if (slq == NULL || s->mds_es_ctx == NULL) {
                tevent_req_done(req);
                return;
        }