From a8729a260b53b9a2fce2607ac90744a47f96daef Mon Sep 17 00:00:00 2001 From: Rasmus Villemoes Date: Mon, 27 May 2024 22:04:17 +0200 Subject: 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 Reviewed-by: Simon Glass --- common/board_r.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'common') diff --git a/common/board_r.c b/common/board_r.c index c823cd262f1..d4ba245ac69 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; -- cgit v1.3.1