From 81d4185cf830a3d601dddbb39c7170c43dc780a1 Mon Sep 17 00:00:00 2001 From: Francesco Dolcini Date: Tue, 21 Sep 2021 11:48:12 +0200 Subject: 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 --- drivers/fastboot/fb_fsl/fb_fsl_common.c | 9 --------- 1 file changed, 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(); -- cgit v1.2.3