]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - common/env_eeprom.c
scsi: move the partition initialization out of the scsi detection
[people/ms/u-boot.git] / common / env_eeprom.c
index 72b13734f287efb7ff5db24db617a09a1d2f5814..5f63a6cd4a98d71f9b10a924da02000e87667ed1 100644 (file)
@@ -145,11 +145,6 @@ void env_relocate_spec(void)
                        gd->env_valid = 1;
        }
 
-       if (gd->env_valid == 2)
-               gd->env_addr = off_env[1] + offsetof(env_t, data);
-       else if (gd->env_valid == 1)
-               gd->env_addr = off_env[0] + offsetof(env_t, data);
-
 #else /* CONFIG_ENV_OFFSET_REDUND */
        ulong crc, len, new;
        uchar rdbuf[64];
@@ -175,10 +170,8 @@ void env_relocate_spec(void)
        }
 
        if (crc == new) {
-               gd->env_addr    = offsetof(env_t, data);
                gd->env_valid   = 1;
        } else {
-               gd->env_addr    = 0;
                gd->env_valid   = 0;
        }
 #endif /* CONFIG_ENV_OFFSET_REDUND */