You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2020/12/22 09:37:29 UTC

[GitHub] [incubator-nuttx] xiaoxiang781216 commented on a change in pull request #2584: esp32_wifi_adapter.c: file mode for open doesn't make sense for O_RDONLY

xiaoxiang781216 commented on a change in pull request #2584:
URL: https://github.com/apache/incubator-nuttx/pull/2584#discussion_r547170882



##########
File path: arch/xtensa/src/esp32/esp32_wifi_adapter.c
##########
@@ -3111,7 +3111,7 @@ static int32_t esp_nvs_get_blob(uint32_t handle,
       return -1;
     }
 
-  fd = open(dir, O_RDONLY, NVS_FILE_MODE);
+  fd = open(dir, O_RDONLY);

Review comment:
       but the kernel code should call file_xxx instead




----------------------------------------------------------------
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.

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