fs_cromfs: Removed DEBUGASSERT on non-exiting var node

This commit is contained in:
David Sidrane 2020-08-20 03:54:06 -07:00 committed by Abdelatif Guettouche
parent beb745ef92
commit 2953880f5c
1 changed files with 0 additions and 4 deletions

View File

@ -755,8 +755,6 @@ static int cromfs_open(FAR struct file *filep, FAR const char *relpath,
return ret; return ret;
} }
DEBUGASSERT(node != NULL);
/* Verify that the node is a regular file */ /* Verify that the node is a regular file */
if (!S_ISREG(info.ci_mode)) if (!S_ISREG(info.ci_mode))
@ -1207,8 +1205,6 @@ static int cromfs_opendir(FAR struct inode *mountpt, FAR const char *relpath,
return ret; return ret;
} }
DEBUGASSERT(node != NULL);
/* Verify that the node is a directory */ /* Verify that the node is a directory */
if (!S_ISDIR(info.ci_mode)) if (!S_ISDIR(info.ci_mode))