mirror of
https://github.com/apache/nuttx.git
synced 2026-05-30 21:36:28 +08:00
fs_cromfs: Removed DEBUGASSERT on non-exiting var node
This commit is contained in:
committed by
Abdelatif Guettouche
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))
|
||||||
|
|||||||
Reference in New Issue
Block a user