From: Marek BehĂșn Date: Fri, 22 Oct 2021 13:47:13 +0000 (+0200) Subject: env: sf: Use ENV_VALID enum names instead of literals X-Git-Url: http://git.dujemihanovic.xyz/img/static/git-logo.png?a=commitdiff_plain;h=87221bd66c2646671450ca8eb97007f2d6e01c5c;p=u-boot.git env: sf: Use ENV_VALID enum names instead of literals The function env_sf_init_addr() assigns number literals (1) instead of ENV_VALID to gd->env_valid. Fix this. Signed-off-by: Marek BehĂșn Reviewed-by: Simon Glass --- diff --git a/env/sf.c b/env/sf.c index 4096e18387..c251d076d7 100644 --- a/env/sf.c +++ b/env/sf.c @@ -339,10 +339,10 @@ static int env_sf_init_addr(void) if (crc32(0, env_ptr->data, ENV_SIZE) == env_ptr->crc) { gd->env_addr = (ulong)&(env_ptr->data); - gd->env_valid = 1; + gd->env_valid = ENV_VALID; } else { gd->env_addr = (ulong)&default_environment[0]; - gd->env_valid = 1; + gd->env_valid = ENV_VALID; } return 0;