diff --git a/fs/cromfs/fs_cromfs.c b/fs/cromfs/fs_cromfs.c index f1d03e3dfc..b3770dd803 100644 --- a/fs/cromfs/fs_cromfs.c +++ b/fs/cromfs/fs_cromfs.c @@ -1153,7 +1153,7 @@ static int cromfs_fstat(FAR const struct file *filep, FAR struct stat *buf) /* Sanity checks */ - DEBUGASSERT(filep->f_priv == NULL && filep->f_inode != NULL); + DEBUGASSERT(filep->f_priv != NULL && filep->f_inode != NULL); /* Get the mountpoint inode reference from the file structure and the * volume private data from the inode structure