Re: [PATCH] xilinx: Do not call private env_get_location() when !ENV_IS_NOWHERE

2024-04-02 Thread Michal Simek
On 3/22/24 12:43, Michal Simek wrote: Private function for finding out location of environment is not working when ENV_IS_NOWHERE is disabled. The reason is that current fallback is ENVL_UNKNOWN when CONFIG_ENV_IS_NOWHERE is not enabled. The code could be updated like this - ret

[PATCH] xilinx: Do not call private env_get_location() when !ENV_IS_NOWHERE

2024-03-22 Thread Michal Simek
Private function for finding out location of environment is not working when ENV_IS_NOWHERE is disabled. The reason is that current fallback is ENVL_UNKNOWN when CONFIG_ENV_IS_NOWHERE is not enabled. The code could be updated like this - return ENVL_NOWHERE; + if (IS_EN