]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbd: Reduce indentation in smb2_parse_file_rename_information()
authorVolker Lendecke <vl@samba.org>
Sat, 13 Sep 2025 20:34:00 +0000 (22:34 +0200)
committerRalph Boehme <slow@samba.org>
Tue, 21 Oct 2025 17:33:29 +0000 (17:33 +0000)
Avoid an "else"

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/smbd/smb2_trans2.c

index 99e4a8b657103a95c312d180009c88be27caf159..1801bca00fdbfc6f255515c77acfd03f9f9ece11 100644 (file)
@@ -4341,17 +4341,17 @@ NTSTATUS smb2_parse_file_rename_information(TALLOC_CTX *ctx,
                        return NT_STATUS_NO_MEMORY;
                }
                goto done;
-       } else {
-               status = filename_convert_dirfsp(ctx,
-                                                conn,
-                                                newname,
-                                                ucf_flags,
-                                                0, /* Never a TWRP. */
-                                                &dst_dirfsp,
-                                                &smb_fname_dst);
-               if (!NT_STATUS_IS_OK(status)) {
-                       return status;
-               }
+       }
+
+       status = filename_convert_dirfsp(ctx,
+                                        conn,
+                                        newname,
+                                        ucf_flags,
+                                        0, /* Never a TWRP. */
+                                        &dst_dirfsp,
+                                        &smb_fname_dst);
+       if (!NT_STATUS_IS_OK(status)) {
+               return status;
        }
 
        /*