Remove redundant parameter fd from SMB_VFS_FTRUNCATE().
[samba.git] / source3 / modules / vfs_commit.c
index f79e68f49e429e36107f8f5908b79bdf6d99a12d..fe7324122f7403499d47717e23c1584dbac9bd90 100644 (file)
@@ -277,12 +277,11 @@ static int commit_close(
 static int commit_ftruncate(
         vfs_handle_struct * handle,
         files_struct *      fsp,
-        int                 fd,
         SMB_OFF_T           len)
 {
         int result;
 
-        result = SMB_VFS_NEXT_FTRUNCATE(handle, fsp, fd, len);
+        result = SMB_VFS_NEXT_FTRUNCATE(handle, fsp, len);
         if (result == 0) {
                struct commit_info *c;
                if ((c = VFS_FETCH_FSP_EXTENSION(handle, fsp))) {