From 9dc1c51db47f43190c9396e9dd77f051530265a4 Mon Sep 17 00:00:00 2001 From: Angel Pons Date: Mon, 2 Nov 2020 20:59:32 +0100 Subject: ec/lenovo: Use get_int_option() Change-Id: Ie5cb54b171244be71848a59a788ed8d42b3e3161 Signed-off-by: Angel Pons Reviewed-on: https://review.coreboot.org/c/coreboot/+/47111 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Rudolph --- src/ec/lenovo/h8/bluetooth.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'src/ec/lenovo/h8/bluetooth.c') diff --git a/src/ec/lenovo/h8/bluetooth.c b/src/ec/lenovo/h8/bluetooth.c index 9e0b266a67..463e0e3332 100644 --- a/src/ec/lenovo/h8/bluetooth.c +++ b/src/ec/lenovo/h8/bluetooth.c @@ -48,10 +48,5 @@ bool h8_has_bdc(const struct device *dev) */ bool h8_bluetooth_nv_enable(void) { - u8 val; - - if (get_option(&val, "bluetooth") != CB_SUCCESS) - return true; - - return val; + return get_int_option("bluetooth", true); } -- cgit v1.2.3