diff options
Diffstat (limited to 'nuttx/fs/nxffs/nxffs_open.c')
-rw-r--r-- | nuttx/fs/nxffs/nxffs_open.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nuttx/fs/nxffs/nxffs_open.c b/nuttx/fs/nxffs/nxffs_open.c index 45168d3da..09a82f6e9 100644 --- a/nuttx/fs/nxffs/nxffs_open.c +++ b/nuttx/fs/nxffs/nxffs_open.c @@ -820,7 +820,7 @@ static int nxffs_wrclose(FAR struct nxffs_volume_s *volume, { /* Write the block with the inode header */ - ret = nxffs_wrcache(volume, volume->ioblock, 1); + ret = nxffs_wrcache(volume); if (ret < 0) { fdbg("Failed to write inode header block %d: %d\n", volume->ioblock, -ret); @@ -842,7 +842,7 @@ static int nxffs_wrclose(FAR struct nxffs_volume_s *volume, /* Finally, copy the inode name to the cache and write the inode name block */ memcpy(&volume->cache[namoffset], wrfile->ofile.entry.name, namlen); - ret = nxffs_wrcache(volume, volume->ioblock, 1); + ret = nxffs_wrcache(volume); if (ret < 0) { fdbg("Failed to write inode header block %d: %d\n", volume->ioblock, -ret); |