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-Tag: v2022.01~65^2~14 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=87221bd66c2646671450ca8eb97007f2d6e01c5c;p=platform%2Fkernel%2Fu-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 4096e18..c251d07 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;