fs_cromfs: Removed DEBUGASSERT on non-exiting var node
This commit is contained in:
parent
beb745ef92
commit
2953880f5c
|
@ -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))
|
||||||
|
|
Loading…
Reference in New Issue