diff options
author | Francesco Dolcini <francesco.dolcini@toradex.com> | 2021-09-21 11:48:12 +0200 |
---|---|---|
committer | Francesco Dolcini <francesco.dolcini@toradex.com> | 2021-09-21 12:05:05 +0200 |
commit | 81d4185cf830a3d601dddbb39c7170c43dc780a1 (patch) | |
tree | 171ed8715d634f4052e2b45a155686b89abee596 | |
parent | bfa9ad28c8035456b488fef586a62bac7011b3b8 (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>
-rw-r--r-- | drivers/fastboot/fb_fsl/fb_fsl_common.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/drivers/fastboot/fb_fsl/fb_fsl_common.c b/drivers/fastboot/fb_fsl/fb_fsl_common.c index b992560ff9..31fa1eb72b 100644 --- a/drivers/fastboot/fb_fsl/fb_fsl_common.c +++ b/drivers/fastboot/fb_fsl/fb_fsl_common.c @@ -352,15 +352,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]; - - 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(); |