diff --git a/fs/inode/fs_inodegetpath.c b/fs/inode/fs_inodegetpath.c index 4c4a163d66..aaeb99bd0e 100644 --- a/fs/inode/fs_inodegetpath.c +++ b/fs/inode/fs_inodegetpath.c @@ -53,7 +53,7 @@ int inode_getpath(FAR struct inode *node, FAR char *path) path[0] = '\0'; return OK; } - else if (node->i_parent != NULL) + else { int ret = inode_getpath(node->i_parent, path); if (ret < 0)