summaryrefslogtreecommitdiff
path: root/nuttx/fs/fs_inoderemove.c
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/fs/fs_inoderemove.c')
-rw-r--r--nuttx/fs/fs_inoderemove.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/nuttx/fs/fs_inoderemove.c b/nuttx/fs/fs_inoderemove.c
index 633222567..c227cfacc 100644
--- a/nuttx/fs/fs_inoderemove.c
+++ b/nuttx/fs/fs_inoderemove.c
@@ -136,6 +136,7 @@ STATUS inode_remove(const char *path)
*/
node->i_flags |= FSNODEFLAG_DELETED;
+ return -EBUSY;
}
else
{
@@ -149,5 +150,5 @@ STATUS inode_remove(const char *path)
/* The node does not exist or it has references */
- return ERROR;
+ return -ENOENT;
}