diff options
Diffstat (limited to 'nuttx/fs/fs_fcntl.c')
-rw-r--r-- | nuttx/fs/fs_fcntl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nuttx/fs/fs_fcntl.c b/nuttx/fs/fs_fcntl.c index f0102ce8e..b7e688895 100644 --- a/nuttx/fs/fs_fcntl.c +++ b/nuttx/fs/fs_fcntl.c @@ -59,7 +59,7 @@ static inline int file_vfcntl(int fildes, int cmd, va_list ap) FAR struct filelist *list; FAR struct file *this_file; int err = 0; - int ret = 0; + int ret = OK; /* Get the thread-specific file list */ @@ -202,7 +202,7 @@ errout: errno = err; return ERROR; } - return OK; + return ret; } #endif /* CONFIG_NFILE_DESCRIPTORS > 0 */ |