]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbd: Simplify reopen_from_fsp
authorVolker Lendecke <vl@samba.org>
Wed, 26 Jun 2024 13:30:50 +0000 (15:30 +0200)
committerRalph Boehme <slow@samba.org>
Fri, 28 Jun 2024 13:26:24 +0000 (13:26 +0000)
In a variable declaration the (struct ...) is not needed

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

index 20db4cf5e231ad1fb0ca2d23e2b961537c4a294c..3b1e9700db3163f0e1fe5b53f7408714ec7dd917 100644 (file)
@@ -1161,7 +1161,7 @@ static NTSTATUS reopen_from_fsp(struct files_struct *dirfsp,
            ((old_fd = fsp_get_pathref_fd(fsp)) != -1)) {
 
                struct sys_proc_fd_path_buf buf;
-               struct smb_filename proc_fname = (struct smb_filename){
+               struct smb_filename proc_fname = {
                        .base_name = sys_proc_fd_path(old_fd, &buf),
                };
                mode_t mode = fsp->fsp_name->st.st_ex_mode;