Fix some backward DEBUGASSERT tests in ROMFS and FAT.
This commit is contained in:
parent
15ba514ecc
commit
40f8e8b41f
@ -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 New Issue
Block a user