From: Volker Lendecke Date: Wed, 26 Jun 2024 13:30:50 +0000 (+0200) Subject: smbd: Simplify reopen_from_fsp X-Git-Tag: tdb-1.4.11~253 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d2932c22e07de217766f622f57e6750f0cd4bc46;p=thirdparty%2Fsamba.git smbd: Simplify reopen_from_fsp In a variable declaration the (struct ...) is not needed Signed-off-by: Volker Lendecke Reviewed-by: Ralph Boehme --- diff --git a/source3/smbd/open.c b/source3/smbd/open.c index 20db4cf5e23..3b1e9700db3 100644 --- a/source3/smbd/open.c +++ b/source3/smbd/open.c @@ -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;