summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorRasmus Villemoes <rasmus.villemoes@prevas.dk>2024-05-27 22:04:17 +0200
committerSimon Glass <sjg@chromium.org>2024-07-03 07:36:33 +0100
commita8729a260b53b9a2fce2607ac90744a47f96daef (patch)
tree3a74b8a21112197b410dddb6fd36a8c03d503917 /common
parentd243b369e95139f77d04007755a4af42a0a03b30 (diff)
downloadu-boot-a8729a260b53b9a2fce2607ac90744a47f96daef.tar.gz
u-boot-a8729a260b53b9a2fce2607ac90744a47f96daef.tar.bz2
u-boot-a8729a260b53b9a2fce2607ac90744a47f96daef.zip
global_data.h: drop write-only field dm_root_f
The dm_root_f field seems to be entirely write-only and hence redundant, unless 'git grep' fails to find some access generated via preprocessor token concatenation or similar. Signed-off-by: Rasmus Villemoes <rasmus.villemoes@prevas.dk> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'common')
-rw-r--r--common/board_r.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/common/board_r.c b/common/board_r.c
index c823cd262f..d4ba245ac6 100644
--- a/common/board_r.c
+++ b/common/board_r.c
@@ -230,8 +230,7 @@ static int initr_dm(void)
oftree_reset();
- /* Save the pre-reloc driver model and start a new one */
- gd->dm_root_f = gd->dm_root;
+ /* Drop the pre-reloc driver model and start a new one */
gd->dm_root = NULL;
#ifdef CONFIG_TIMER
gd->timer = NULL;