aboutsummaryrefslogtreecommitdiff
path: root/src/soc/intel/skylake
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/skylake
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/skylake')
-rw-r--r--src/soc/intel/skylake/memmap.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/soc/intel/skylake/memmap.c b/src/soc/intel/skylake/memmap.c
index 9151d967eb..f0ccb1dabc 100644
--- a/src/soc/intel/skylake/memmap.c
+++ b/src/soc/intel/skylake/memmap.c
@@ -338,7 +338,6 @@ void cbmem_top_init(void)
void *cbmem_top(void)
{
struct ebda_config ebda_cfg;
- struct ebda_config *cfg = &ebda_cfg;
/*
* Check if Tseg has been initialized, we will use this as a flag
@@ -349,7 +348,7 @@ void *cbmem_top(void)
if (sa_get_tseg_base() == 0)
return NULL;
- retrieve_ebda_object(cfg);
+ retrieve_ebda_object(&ebda_cfg);
- return (void *)(uintptr_t)cfg->tolum_base;
+ return (void *)(uintptr_t)ebda_cfg.tolum_base;
}