Fix some backward DEBUGASSERT tests in ROMFS and FAT.

This commit is contained in:
Gregory Nutt 2017-02-13 14:06:39 -06:00
parent 15ba514ecc
commit 40f8e8b41f
3 changed files with 3 additions and 2 deletions

View File

@ -24,6 +24,7 @@ fread NXfread
fseek NXfseek
fwrite NXfwrite
fsync NXfsync
fstat NXfstat
ftell NXftell
getenv NXgetenv
getopt NXgetopt

View File

@ -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

View File

@ -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