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/wwan.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'src/ec/lenovo/h8/wwan.c') diff --git a/src/ec/lenovo/h8/wwan.c b/src/ec/lenovo/h8/wwan.c index fbd9d29fe1..90f6b47bbb 100644 --- a/src/ec/lenovo/h8/wwan.c +++ b/src/ec/lenovo/h8/wwan.c @@ -46,10 +46,5 @@ bool h8_has_wwan(const struct device *dev) */ bool h8_wwan_nv_enable(void) { - u8 val; - - if (get_option(&val, "wwan") != CB_SUCCESS) - return true; - - return val; + return get_int_option("wwan", true); } -- cgit v1.2.3