summaryrefslogtreecommitdiff
path: root/source3/modules
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2013-04-09 21:07:23 +0200
committerJeremy Allison <jra@samba.org>2013-04-09 22:20:35 +0200
commitce2fb2d019b6f8304b81e2d4d68bdac31edcf025 (patch)
tree575992e9bf2f5dcf4243c5b5937e84636ae23e05 /source3/modules
parent60c2953a9d5fa12494a8a767c30913398affe453 (diff)
downloadsamba-ce2fb2d019b6f8304b81e2d4d68bdac31edcf025.tar.gz
samba-ce2fb2d019b6f8304b81e2d4d68bdac31edcf025.tar.bz2
samba-ce2fb2d019b6f8304b81e2d4d68bdac31edcf025.zip
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>
Diffstat (limited to 'source3/modules')
-rw-r--r--source3/modules/vfs_fake_perms.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/modules/vfs_fake_perms.c b/source3/modules/vfs_fake_perms.c
index a447f311c3..f8d89019be 100644
--- a/source3/modules/vfs_fake_perms.c
+++ b/source3/modules/vfs_fake_perms.c
@@ -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) {