nuttx/fs: Fix some spacing and alignment issues

This commit is contained in:
Gregory Nutt
2015-10-11 11:39:29 -06:00
parent 185b941c27
commit c70987e551
51 changed files with 568 additions and 539 deletions
+13 -13
View File
@@ -127,23 +127,23 @@ int sem_close(FAR sem_t *sem)
* now.
*/
if (inode->i_crefs <= 0 && (inode->i_flags & FSNODEFLAG_DELETED) != 0)
{
/* Destroy the semaphore and free the container */
if (inode->i_crefs <= 0 && (inode->i_flags & FSNODEFLAG_DELETED) != 0)
{
/* Destroy the semaphore and free the container */
sem_destroy(&nsem->ns_sem);
group_free(NULL, nsem);
sem_destroy(&nsem->ns_sem);
group_free(NULL, nsem);
/* Release and free the inode container. If it has been properly
* unlinked, then the peer pointer should be NULL.
*/
/* Release and free the inode container. If it has been properly
* unlinked, then the peer pointer should be NULL.
*/
inode_semgive();
inode_semgive();
DEBUGASSERT(inode->i_peer == NULL);
inode_free(inode);
return OK;
}
DEBUGASSERT(inode->i_peer == NULL);
inode_free(inode);
return OK;
}
inode_semgive();
return OK;
+6 -6
View File
@@ -125,7 +125,7 @@ FAR sem_t *sem_open (FAR const char *name, int oflags, ...)
FAR const char *relpath = NULL;
mode_t mode;
FAR struct nsem_inode_s *nsem;
FAR sem_t *sem = (FAR sem_t*)ERROR;
FAR sem_t *sem = (FAR sem_t *)ERROR;
char fullpath[MAX_SEMPATH];
unsigned value;
int errcode;
@@ -168,7 +168,7 @@ FAR sem_t *sem_open (FAR const char *name, int oflags, ...)
* create a new semaphore with this name.
*/
if ((oflags & (O_CREAT|O_EXCL)) == (O_CREAT|O_EXCL))
if ((oflags & (O_CREAT | O_EXCL)) == (O_CREAT | O_EXCL))
{
errcode = EEXIST;
goto errout_with_inode;
@@ -195,10 +195,10 @@ FAR sem_t *sem_open (FAR const char *name, int oflags, ...)
goto errout_with_lock;
}
/* Create the semaphore. First we have to extract the additional
* parameters from the variable argument list.
* REVISIT: Mode parameter is not currently used.
*/
/* Create the semaphore. First we have to extract the additional
* parameters from the variable argument list.
* REVISIT: Mode parameter is not currently used.
*/
va_start(ap, oflags);
mode = va_arg(ap, mode_t);