From ed13dd918d597afd5bcce30d4dce66174435af55 Mon Sep 17 00:00:00 2001 From: Sascha Hauer Date: Wed, 6 Jun 2018 08:50:44 +0200 Subject: bootm: Drop data->oftree It's no longer necessary to store the devicetree pointer in struct image_data, it can be replaced with a local variable. Signed-off-by: Sascha Hauer --- common/bootm.c | 6 ------ 1 file changed, 6 deletions(-) (limited to 'common/bootm.c') diff --git a/common/bootm.c b/common/bootm.c index 5ff6683fe7..8167c3a603 100644 --- a/common/bootm.c +++ b/common/bootm.c @@ -337,9 +337,6 @@ int bootm_load_devicetree(struct image_data *data, unsigned long load_address) struct fdt_header *oftree; int ret; - if (data->oftree) - return 0; - if (!IS_ENABLED(CONFIG_OFTREE)) return 0; @@ -431,8 +428,6 @@ int bootm_load_devicetree(struct image_data *data, unsigned long load_address) if (bootm_verbose(data) > 1) of_print_nodes(data->of_root_node, 0); - data->oftree = oftree; - return 0; } @@ -576,7 +571,6 @@ int bootm_boot(struct bootm_data *bootm_data) * When we only allow booting signed images make sure everything * we boot is in the OS image and not given separately. */ - data->oftree = NULL; data->oftree_file = NULL; data->initrd_file = NULL; if (os_type != filetype_oftree) { -- cgit v1.2.3