fs/dirent/fs_opendir.c: Fix typo and style. opendir() did set errno to a negative value in one error case. Fixed some coding style issues found by nxstyle.

This commit is contained in:
Michael Jung 2019-07-31 07:18:07 -06:00 committed by Gregory Nutt
parent 32e9ba7604
commit d1afc02c50

View File

@ -138,7 +138,8 @@ static inline int open_mountpoint(FAR struct inode *inode,
*
****************************************************************************/
static void open_pseudodir(FAR struct inode *inode, FAR struct fs_dirent_s *dir)
static void open_pseudodir(FAR struct inode *inode,
FAR struct fs_dirent_s *dir)
{
/* We have a valid pseudo-filesystem node. Take two references on the
* inode -- one for the parent (fd_root) and one for the child (fd_next).
@ -297,7 +298,7 @@ FAR DIR *opendir(FAR const char *path)
if (*path != '/')
{
ret = -ENOTDIR;
ret = ENOTDIR;
goto errout_with_semaphore;
}