xiaoxiang781216 commented on code in PR #6965:
URL: https://github.com/apache/incubator-nuttx/pull/6965#discussion_r989883011


##########
fs/smartfs/smartfs_smart.c:
##########
@@ -1977,21 +1962,21 @@ int smartfs_rename(struct inode *mountpt, const char 
*oldrelpath,
                                 NULL);
       if (ret != OK)
         {
-          goto errout_with_semaphore;
+          goto errout_with_lock;
         }
 
       /* Now mark the old entry as inactive */
 
       readwrite.logsector = oldentry.dsector;
       readwrite.offset = 0;
       readwrite.count = fs->fs_llformat.availbytes;
-      readwrite.buffer = (uint8_t *) fs->fs_rwbuffer;
+      readwrite.buffer = (uint8_t *)fs->fs_rwbuffer;

Review Comment:
   Done



##########
fs/smartfs/smartfs_smart.c:
##########
@@ -1406,22 +1406,22 @@ static int smartfs_readdir(FAR struct inode *mountpt,
 
               sdir->fs_curroffset =
                 sizeof(struct smartfs_chain_header_s);
-              header = (struct smartfs_chain_header_s *) fs->fs_rwbuffer;
+              header = (struct smartfs_chain_header_s *)fs->fs_rwbuffer;
               sdir->fs_currsector = SMARTFS_NEXTSECTOR(header);
             }
 
           /* Now exit */
 
           ret = OK;
-          goto errout_with_semaphore;
+          goto errout_with_lock;
         }
 
       /* No more entries in this sector.  Move on to next sector and
        * continue the search.  If no more sectors, then we are all
        * done and will report ENOENT.
        */
 
-      header = (struct smartfs_chain_header_s *) fs->fs_rwbuffer;
+      header = (struct smartfs_chain_header_s *)fs->fs_rwbuffer;

Review Comment:
   Done



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to