xiaoxiang781216 commented on code in PR #6965: URL: https://github.com/apache/incubator-nuttx/pull/6965#discussion_r989882687
########## fs/smartfs/smartfs_utils.c: ########## @@ -284,8 +266,8 @@ int smartfs_mount(struct smartfs_mountpt_s *fs, bool writeable) g_mounthead = fs; #endif - fs->fs_rwbuffer = (char *) kmm_malloc(fs->fs_llformat.availbytes); - fs->fs_workbuffer = (char *) kmm_malloc(WORKBUFFER_SIZE); + fs->fs_rwbuffer = (char *)kmm_malloc(fs->fs_llformat.availbytes); + fs->fs_workbuffer = (char *)kmm_malloc(WORKBUFFER_SIZE); Review Comment: Done ########## fs/smartfs/smartfs_utils.c: ########## @@ -260,8 +242,8 @@ int smartfs_mount(struct smartfs_mountpt_s *fs, bool writeable) if (nextfs == NULL) { - fs->fs_rwbuffer = (char *) kmm_malloc(fs->fs_llformat.availbytes); - fs->fs_workbuffer = (char *) kmm_malloc(WORKBUFFER_SIZE); + fs->fs_rwbuffer = (char *)kmm_malloc(fs->fs_llformat.availbytes); + fs->fs_workbuffer = (char *)kmm_malloc(WORKBUFFER_SIZE); Review Comment: Done ########## fs/smartfs/smartfs_smart.c: ########## @@ -2006,26 +1991,26 @@ int smartfs_rename(struct inode *mountpt, const char *oldrelpath, readwrite.offset = oldentry.doffset; readwrite.count = sizeof(direntry->flags); - readwrite.buffer = (uint8_t *) &direntry->flags; + readwrite.buffer = (uint8_t *)&direntry->flags; 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