fs/vfs: remove unreachable statement
The inode->u.i_ops, line 157, is confirmed at previous line, line 152, as it's not null
so that line 157, if conditaional checking and line 210, else statement is unnecessary.
@@ -154,7 +154,6 @@ int unlink(FAR const char *pathname)
* then rmdir should remove the node.
*/
- if (inode->u.i_ops) {
inode_semtake();
/* Refuse to unlink the inode if it has children. I.e., if it is
@@ -207,10 +206,6 @@ int unlink(FAR const char *pathname)
errcode = -ret;
goto errout_with_inode;
}
- } else {
- errcode = EISDIR;
- goto errout_with_inode;
- }
} else
#endif
{
