mirror of
https://github.com/apache/nuttx.git
synced 2026-05-24 07:46:16 +08:00
esp32_wifi_adapter.c: file mode for open doesn't make sense for O_RDONLY
This commit is contained in:
committed by
Xiang Xiao
parent
073912e232
commit
0fbfc4c44c
@@ -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);
|
||||
if (fd < 0)
|
||||
{
|
||||
if (errno == ENOENT)
|
||||
|
||||
Reference in New Issue
Block a user