summaryrefslogtreecommitdiff
path: root/nuttx/fs/smartfs/smartfs_procfs.c
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/fs/smartfs/smartfs_procfs.c')
-rw-r--r--nuttx/fs/smartfs/smartfs_procfs.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/nuttx/fs/smartfs/smartfs_procfs.c b/nuttx/fs/smartfs/smartfs_procfs.c
index 64f7101d4..f1c75c365 100644
--- a/nuttx/fs/smartfs/smartfs_procfs.c
+++ b/nuttx/fs/smartfs/smartfs_procfs.c
@@ -435,14 +435,11 @@ static int smartfs_rewinddir(struct fs_dirent_s *dir)
static int smartfs_stat(const char *relpath, struct stat *buf)
{
- int ret = -ENOENT;
-
/* TODO: Decide if the relpath is valid and if it is a file
* or a directory and set it's permissions.
*/
buf->st_mode = S_IFDIR|S_IROTH|S_IRGRP|S_IRUSR;
- ret = OK;
/* File/directory size, access block size */
@@ -450,7 +447,7 @@ static int smartfs_stat(const char *relpath, struct stat *buf)
buf->st_blksize = 0;
buf->st_blocks = 0;
- return ret;
+ return OK;
}
/****************************************************************************