Merge "ARM: env_nand: Updated env to use complete partition"

This commit is contained in:
Linux Build Service Account 2017-09-13 10:04:49 -07:00 committed by Gerrit - the friendly Code Review server
commit 23f6546a5d

View file

@ -128,7 +128,7 @@ int nand_env_init(void)
*/
static int writeenv(size_t offset, u_char *buf)
{
size_t end = offset + CONFIG_ENV_RANGE;
size_t end = offset + board_env_size;
size_t amount_saved = 0;
size_t blocksize, len;
u_char *char_ptr;
@ -243,7 +243,7 @@ static int readenv(size_t offset, u_char *buf)
#else
static int readenv(size_t offset, u_char *buf)
{
size_t end = offset + CONFIG_ENV_RANGE;
size_t end = offset + board_env_size;
size_t amount_loaded = 0;
size_t blocksize, len;
u_char *char_ptr;