summaryrefslogtreecommitdiff
path: root/src/mainboard/supermicro/x10slm-f
diff options
context:
space:
mode:
authorAngel Pons <th3fanbus@gmail.com>2020-11-02 22:49:51 +0100
committerPatrick Georgi <pgeorgi@google.com>2021-04-21 09:06:30 +0000
commitf8a5eb2e4afc190214ba5f1766998a1812f69a40 (patch)
treeaa8b375900a20bd721ceb113fe335110e47684de /src/mainboard/supermicro/x10slm-f
parent0b7813fe97121eb7cb9c0b8ac59e604e9f613679 (diff)
mainboard: Use read_int_option()
Change-Id: I9273b90b6a21b8f52fa42d9ff03a9b56eec9fcbf Signed-off-by: Angel Pons <th3fanbus@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/47137 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Diffstat (limited to 'src/mainboard/supermicro/x10slm-f')
-rw-r--r--src/mainboard/supermicro/x10slm-f/mainboard.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/mainboard/supermicro/x10slm-f/mainboard.c b/src/mainboard/supermicro/x10slm-f/mainboard.c
index 2f206060b7..b584e9bd73 100644
--- a/src/mainboard/supermicro/x10slm-f/mainboard.c
+++ b/src/mainboard/supermicro/x10slm-f/mainboard.c
@@ -30,9 +30,7 @@ static void hide_ast2400(void)
static void mainboard_enable(struct device *dev)
{
- u8 hide = 0;
-
- if (get_option(&hide, "hide_ast2400") == CB_SUCCESS && hide)
+ if (get_int_option("hide_ast2400", false))
hide_ast2400();
}