From 488a56280af5ea6366b2aed43eb737d37c0c115b Mon Sep 17 00:00:00 2001 From: Xiang Xiao Date: Thu, 27 Oct 2022 04:36:13 +0800 Subject: [PATCH] fs: Correct the comment of file_allocate Signed-off-by: Xiang Xiao --- fs/inode/fs_files.c | 6 +++--- include/nuttx/fs/fs.h | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/fs/inode/fs_files.c b/fs/inode/fs_files.c index b19f31fb9ec..a4677471813 100644 --- a/fs/inode/fs_files.c +++ b/fs/inode/fs_files.c @@ -159,11 +159,11 @@ void files_releaselist(FAR struct filelist *list) * * Description: * Allocate a struct files instance and associate it with an inode - * instance. Returns the file descriptor == index into the files array. + * instance. * * Returned Value: - * Zero (OK) is returned on success; a negated errno value is returned on - * any failure. + * Returns the file descriptor == index into the files array on success; + * a negated errno value is returned on any failure. * ****************************************************************************/ diff --git a/include/nuttx/fs/fs.h b/include/nuttx/fs/fs.h index 9f87411973c..951ad825acb 100644 --- a/include/nuttx/fs/fs.h +++ b/include/nuttx/fs/fs.h @@ -774,11 +774,11 @@ int files_duplist(FAR struct filelist *plist, FAR struct filelist *clist); * * Description: * Allocate a struct files instance and associate it with an inode - * instance. Returns the file descriptor == index into the files array. + * instance. * * Returned Value: - * Zero (OK) is returned on success; a negated errno value is returned on - * any failure. + * Returns the file descriptor == index into the files array on success; + * a negated errno value is returned on any failure. * ****************************************************************************/