mirror of
https://github.com/apache/nuttx.git
synced 2025-01-13 13:18:50 +08:00
Fix some backward DEBUGASSERT tests in ROMFS and FAT.
This commit is contained in:
parent
15ba514ecc
commit
40f8e8b41f
3 changed files with 3 additions and 2 deletions
|
@ -24,6 +24,7 @@ fread NXfread
|
|||
fseek NXfseek
|
||||
fwrite NXfwrite
|
||||
fsync NXfsync
|
||||
fstat NXfstat
|
||||
ftell NXftell
|
||||
getenv NXgetenv
|
||||
getopt NXgetopt
|
||||
|
|
|
@ -1634,7 +1634,7 @@ static int fat_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
|
||||
* mountpoint private data from the inode structure
|
||||
|
|
|
@ -719,7 +719,7 @@ static int romfs_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 mountpoint private data from the inode reference from the file
|
||||
* structure
|
||||
|
|
Loading…
Reference in a new issue