summaryrefslogtreecommitdiff
path: root/src/soc/intel/common
diff options
context:
space:
mode:
authorArthur Heymans <arthur@aheymans.xyz>2018-04-09 23:14:22 +0200
committerSubrata Banik <subrata.banik@intel.com>2018-04-11 02:19:43 +0000
commitac312c690ce16031dbe7612dac83dac387fad3d6 (patch)
tree5dd317d647850fca40d8b38e3d72210788ef4884 /src/soc/intel/common
parent445368cdde3f450a767f05555108db3c09cf531b (diff)
soc/intel: Remove superfluous pointers variables
Change-Id: I639be58df358129c1f420cf8d1540edd408859a7 Signed-off-by: Arthur Heymans <arthur@aheymans.xyz> Reviewed-on: https://review.coreboot.org/25572 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-by: Subrata Banik <subrata.banik@intel.com> Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Diffstat (limited to 'src/soc/intel/common')
-rw-r--r--src/soc/intel/common/block/ebda/ebda.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/soc/intel/common/block/ebda/ebda.c b/src/soc/intel/common/block/ebda/ebda.c
index 4f60490824..d16ad6e4c0 100644
--- a/src/soc/intel/common/block/ebda/ebda.c
+++ b/src/soc/intel/common/block/ebda/ebda.c
@@ -40,13 +40,12 @@ static void create_soc_ebda(struct ebda_config *cfg)
void fill_ebda_area(void)
{
struct ebda_config ebda_cfg;
- struct ebda_config *cfg = &ebda_cfg;
/* Initialize EBDA area early during romstage. */
setup_default_ebda();
- create_soc_ebda(cfg);
- create_mainboard_ebda(cfg);
- write_ebda_data(cfg, sizeof(*cfg));
+ create_soc_ebda(&ebda_cfg);
+ create_mainboard_ebda(&ebda_cfg);
+ write_ebda_data(&ebda_cfg, sizeof(ebda_cfg));
}
void retrieve_ebda_object(struct ebda_config *cfg)