esp32_wifi_adapter.c: file mode for open doesn't make sense for O_RDONLY

This commit is contained in:
YAMAMOTO Takashi 2020-12-22 13:25:51 +09:00 committed by Xiang Xiao
parent 073912e232
commit 0fbfc4c44c

View File

@ -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)