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 0a7d86f587
commit ca0fb5694f
+4 -1
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);