summaryrefslogtreecommitdiff
path: root/board/keymile/common/common.c
diff options
context:
space:
mode:
authorHolger Brunck <holger.brunck@keymile.com>2011-06-05 22:22:17 +0000
committerWolfgang Denk <wd@denx.de>2011-07-27 23:44:15 +0200
commitba8be32a8f653b117a3623c4c45b010a34fdf54d (patch)
tree4b9abb528c6fa7b34c5beb2d53e4d7f2216c0b3d /board/keymile/common/common.c
parente8195825716c0ef8cfaea513c8a3d9d3becf7e00 (diff)
downloadu-boot-imx-ba8be32a8f653b117a3623c4c45b010a34fdf54d.zip
u-boot-imx-ba8be32a8f653b117a3623c4c45b010a34fdf54d.tar.gz
u-boot-imx-ba8be32a8f653b117a3623c4c45b010a34fdf54d.tar.bz2
km/common: remove saveenv from do_checkboardidhwkey
This is unneeded here because we save the environment when the board boots the first time. At this time we have set the values already. Signed-off-by: Holger Brunck <holger.brunck@keymile.com> Signed-off-by: Valentin Longchamp <valentin.longchamp@keymile.com> cc: Heiko Schocher <hs@denx.de> cc: Wolfgang Denk <wd@denx.de>
Diffstat (limited to 'board/keymile/common/common.c')
-rw-r--r--board/keymile/common/common.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/board/keymile/common/common.c b/board/keymile/common/common.c
index fef6253..d8fcd39 100644
--- a/board/keymile/common/common.c
+++ b/board/keymile/common/common.c
@@ -831,11 +831,7 @@ int do_checkboardidhwk(cmd_tbl_t *cmdtp, int flag, int argc,
* Compare the values of the found entry in the
* list with the valid values which are stored
* in the inventory eeprom. If they are equal
- * store the values in environment variables
- * and save the environment.
- * This can only happen once for the lifetime
- * of a board, because once saved the function
- * will never reach the while loop.
+ * set the values in environment variables.
*/
if ((bid == ivmbid) && (hwkey == ivmhwkey)) {
char buf[10];
@@ -847,7 +843,6 @@ int do_checkboardidhwk(cmd_tbl_t *cmdtp, int flag, int argc,
setenv("boardid", buf);
sprintf(buf, "%lx", hwkey);
setenv("hwkey", buf);
- saveenv();
}
} /* end while( ! found ) */
}