diff options
author | Francesco Dolcini <francesco.dolcini@toradex.com> | 2021-09-21 11:48:12 +0200 |
---|---|---|
committer | Andrejs Cainikovs <andrejs.cainikovs@toradex.com> | 2022-07-20 14:57:43 +0200 |
commit | 709bb63351bf24804f68ecb9bc6acdf04d472e10 (patch) | |
tree | 56f5c5596613293da054ae9e0b65bb620d484caf | |
parent | 58a2b1bd8ffefc1b283303e3426ece16844bf716 (diff) |
fastboot: fsl: remove serial# env overwrite
Remove serial# env_set() from FSL fastboot code, serial# is supposed
to be set in board code, doing it again here is redundant and will just
overwrite the previously set value, potentially with a different value.
Signed-off-by: Francesco Dolcini <francesco.dolcini@toradex.com>
(cherry picked from commit 81d4185cf830a3d601dddbb39c7170c43dc780a1)
-rw-r--r-- | drivers/fastboot/fb_fsl/fb_fsl_common.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/drivers/fastboot/fb_fsl/fb_fsl_common.c b/drivers/fastboot/fb_fsl/fb_fsl_common.c index 613b074022..6841e3e945 100644 --- a/drivers/fastboot/fb_fsl/fb_fsl_common.c +++ b/drivers/fastboot/fb_fsl/fb_fsl_common.c @@ -365,17 +365,6 @@ static int _fastboot_setup_dev(int *switched) void fastboot_setup(void) { int sw, ret; - struct tag_serialnr serialnr = { - .high = 0, - .low = 0, - }; - char serial[17]; - - if (!env_get("serial#")) { - get_board_serial(&serialnr); - sprintf(serial, "%08x%08x", serialnr.high, serialnr.low); - env_set("serial#", serial); - } /*execute board relevant initilizations for preparing fastboot */ board_fastboot_setup(); |