mirror of
https://github.com/samba-team/samba.git
synced 2025-03-09 08:58:35 +03:00
vfs_fake_perms: Slightly streamline code
Don't initialize a variable directly set Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
60c2953a9d
commit
ce2fb2d019
@ -32,7 +32,7 @@
|
||||
static int fake_perms_stat(vfs_handle_struct *handle,
|
||||
struct smb_filename *smb_fname)
|
||||
{
|
||||
int ret = -1;
|
||||
int ret;
|
||||
|
||||
ret = SMB_VFS_NEXT_STAT(handle, smb_fname);
|
||||
if (ret != 0) {
|
||||
@ -52,7 +52,7 @@ static int fake_perms_stat(vfs_handle_struct *handle,
|
||||
|
||||
static int fake_perms_fstat(vfs_handle_struct *handle, files_struct *fsp, SMB_STRUCT_STAT *sbuf)
|
||||
{
|
||||
int ret = -1;
|
||||
int ret;
|
||||
|
||||
ret = SMB_VFS_NEXT_FSTAT(handle, fsp, sbuf);
|
||||
if (ret != 0) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user