]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbd: Remove an unnecessary else branch
authorVolker Lendecke <vl@samba.org>
Thu, 16 May 2024 10:04:23 +0000 (12:04 +0200)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 22 May 2024 04:23:29 +0000 (04:23 +0000)
We return in the if branch, review with "git show -w"

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source3/smbd/smb2_read.c

index 877ca955cdd8927e205724b36aac74237c78fda0..db0aca7ac6835ea912f78f0a10cdb8bcb5e1615f 100644 (file)
@@ -581,11 +581,10 @@ static struct tevent_req *smbd_smb2_read_send(TALLOC_CTX *mem_ctx,
        if (NT_STATUS_IS_OK(status)) {
                tevent_req_done(req);
                return tevent_req_post(req, ev);
-       } else {
-               if (!NT_STATUS_EQUAL(status, NT_STATUS_RETRY)) {
-                       tevent_req_nterror(req, status);
-                       return tevent_req_post(req, ev);
-               }
+       }
+       if (!NT_STATUS_EQUAL(status, NT_STATUS_RETRY)) {
+               tevent_req_nterror(req, status);
+               return tevent_req_post(req, ev);
        }
 
        /* Ok, read into memory. Allocate the out buffer. */