diff options
Diffstat (limited to 'nuttx/fs/fs_inoderemove.c')
-rw-r--r-- | nuttx/fs/fs_inoderemove.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nuttx/fs/fs_inoderemove.c b/nuttx/fs/fs_inoderemove.c index cb80dcbc5..b6b56c4af 100644 --- a/nuttx/fs/fs_inoderemove.c +++ b/nuttx/fs/fs_inoderemove.c @@ -112,9 +112,9 @@ STATUS inode_remove(const char *path) FAR struct inode *left; FAR struct inode *parent; - if (*path && path[0] == '/') + if (!*path || path[0] != '/') { - return ERROR; + return -EINVAL; } /* Find the node to delete */ |