We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5b82df5 commit 34a6b89Copy full SHA for 34a6b89
drivers/flash/soc_flash_nrf_mramc.c
@@ -186,11 +186,11 @@ static int mramc_sys_init(const struct device *dev)
186
ARG_UNUSED(dev);
187
188
nrfx_mramc_config_t config = NRFX_MRAMC_DEFAULT_CONFIG();
189
- nrfx_err_t err = nrfx_mramc_init(&config, NULL);
+ int ret = nrfx_mramc_init(&config, NULL);
190
191
- if (err != NRFX_SUCCESS) {
+ if (ret != 0) {
192
LOG_ERR("Failed to initialize MRAMC: %d", err);
193
- return -EIO;
+ return ret;
194
}
195
LOG_DBG("MRAMC initialized successfully");
196
return 0;
0 commit comments