Abhishekmishra2808 commented on code in PR #19166:
URL: https://github.com/apache/nuttx/pull/19166#discussion_r3446825502


##########
fs/littlefs/lfs_vfs.c:
##########
@@ -376,8 +572,30 @@ static int littlefs_open(FAR struct file *filep, FAR const 
char *relpath,
 
   /* Try to open the file */
 
-  relpath = littlefs_convert_path(relpath);
-  oflags = littlefs_convert_oflags(oflags);
+  nuttx_oflags = oflags;
+  path = littlefs_convert_path(relpath);
+
+#if defined(CONFIG_FS_PERMISSION) && defined(CONFIG_FS_LITTLEFS_ATTR_UPDATE)
+  sret = lfs_stat(&fs->lfs, path, &info);

Review Comment:
   Removed sret, reuse ret for lfs_stat()



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to