You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by bt...@apache.org on 2020/04/30 08:04:45 UTC

[incubator-nuttx] 02/02: fs_tmpfs.c: Shorten long lines according to codestyle

This is an automated email from the ASF dual-hosted git repository.

btashton pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git

commit aeebbd08031c95d1e7715c10339f211791d1696e
Author: Oxore <ox...@protonmail.com>
AuthorDate: Thu Apr 30 10:53:56 2020 +0300

    fs_tmpfs.c: Shorten long lines according to codestyle
---
 fs/tmpfs/fs_tmpfs.c | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/fs/tmpfs/fs_tmpfs.c b/fs/tmpfs/fs_tmpfs.c
index 915ccb6..81796ec 100644
--- a/fs/tmpfs/fs_tmpfs.c
+++ b/fs/tmpfs/fs_tmpfs.c
@@ -662,7 +662,9 @@ static int tmpfs_create_file(FAR struct tmpfs_s *fs,
       name   = copy;
       parent = (FAR struct tmpfs_directory_s *)fs->tfs_root.tde_object;
 
-      /* Lock the root directory to emulate the behavior of tmpfs_find_directory() */
+      /* Lock the root directory to emulate the behavior of
+       * tmpfs_find_directory()
+       */
 
       ret = tmpfs_lock_directory(parent);
       if (ret < 0)
@@ -1175,7 +1177,9 @@ static int tmpfs_statfs_callout(FAR struct tmpfs_directory_s *tdo,
 
   DEBUGASSERT(to != NULL);
 
-  /* Accumulate statistics.  Save the total memory allocated for this object. */
+  /* Accumulate statistics.  Save the total memory allocated
+   * for this object.
+   */
 
   tmpbuf->tsf_alloc += to->to_alloc;
 
@@ -1271,7 +1275,7 @@ static int tmpfs_free_callout(FAR struct tmpfs_directory_s *tdo,
 
       if (tfo->tfo_refs > 0)
         {
-          /* Yes.. We cannot delete the file now.  Just mark it as unlinked. */
+          /* Yes.. We cannot delete the file now. Just mark it as unlinked. */
 
           tfo->tfo_flags |= TFO_FLAG_UNLINKED;
           return TMPFS_UNLINKED;