vfs: Fix unsed label warning

Signed-off-by: Brennan Ashton <bashton@brennanashton.com>
This commit is contained in:
Brennan Ashton 2020-12-30 15:53:01 -08:00 committed by Xiang Xiao
parent 3386941a10
commit 1473768ffc
1 changed files with 4 additions and 1 deletions

View File

@ -191,11 +191,14 @@ int nx_unlink(FAR const char *pathname)
RELEASE_SEARCH(&desc);
return OK;
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
errout_with_sem:
inode_semgive();
#endif
#if !defined(CONFIG_DISABLE_MOUNTPOINT) || !defined(CONFIG_DISABLE_PSEUDOFS_OPERATIONS)
errout_with_inode:
inode_release(inode);
#endif
errout_with_search:
RELEASE_SEARCH(&desc);