summaryrefslogtreecommitdiff
path: root/src/cpu/x86/mtrr/mtrr.c
diff options
context:
space:
mode:
authorKyösti Mälkki <kyosti.malkki@gmail.com>2014-06-30 13:48:18 +0300
committerKyösti Mälkki <kyosti.malkki@gmail.com>2014-06-30 17:55:36 +0200
commit38a8fb0c1891bbe3b53965e04c1c7ebcc00654da (patch)
tree877bd916925d48a10a2561ed8728166ed98f0326 /src/cpu/x86/mtrr/mtrr.c
parent599cda82283294944883cb17e8c2a43d96f9d2e9 (diff)
downloadcoreboot-38a8fb0c1891bbe3b53965e04c1c7ebcc00654da.tar.xz
x86 MTRR: Drop unused return value
It was never well-defined what value this function should return. Change-Id: If84aff86e0b556591d7ad557842910a2dfcd3b46 Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: http://review.coreboot.org/6166 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi <patrick@georgi-clan.de> Reviewed-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
Diffstat (limited to 'src/cpu/x86/mtrr/mtrr.c')
-rw-r--r--src/cpu/x86/mtrr/mtrr.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/cpu/x86/mtrr/mtrr.c b/src/cpu/x86/mtrr/mtrr.c
index 8826535528..b19b853196 100644
--- a/src/cpu/x86/mtrr/mtrr.c
+++ b/src/cpu/x86/mtrr/mtrr.c
@@ -772,7 +772,7 @@ void x86_setup_mtrrs(void)
x86_setup_var_mtrrs(address_size, 1);
}
-int x86_mtrr_check(void)
+void x86_mtrr_check(void)
{
/* Only Pentium Pro and later have MTRR */
msr_t msr;
@@ -795,5 +795,4 @@ int x86_mtrr_check(void)
printk(BIOS_DEBUG, "\n");
post_code(0x93);
- return ((int) msr.lo);
}