Skip to content
Snippets Groups Projects
Commit ba8be32a authored by Holger Brunck's avatar Holger Brunck Committed by Wolfgang Denk
Browse files

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: default avatarHolger Brunck <holger.brunck@keymile.com>
Signed-off-by: default avatarValentin Longchamp <valentin.longchamp@keymile.com>
cc: Heiko Schocher <hs@denx.de>
cc: Wolfgang Denk <wd@denx.de>
parent e8195825
No related branches found
No related tags found
No related merge requests found
......@@ -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 ) */
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment