/* Returns: an enum env_location value on success, a negative error code otherwise  */
__weak enum env_location env_get_location(enum env_operation op, int prio)
/* Returns: an enum env_location value on success, a negative error code otherwise  */
__weak enum env_location env_get_location(enum env_operation op, int prio)
{
	if (prio >= ARRAY_SIZE(env_locations))
		return ENVL_UNKNOWN;
	gd->env_load_prio = prio;
	return env_locations[prio];
}