From b2a4c27a2fa2348b5b9589a8e228cdd34feb459b Mon Sep 17 00:00:00 2001 From: Angel Pons Date: Thu, 20 May 2021 11:28:07 +0200 Subject: option.h: Correct `get_uint_option` return type Commit 88dcb3179b4b (src: Retype option API to use unsigned integers) changed the option API to use unsigned integers, but missed this. Change-Id: I5deb17157db41c40cc72078e2af9cf65bdbe0581 Signed-off-by: Angel Pons Reviewed-on: https://review.coreboot.org/c/coreboot/+/54726 Tested-by: build bot (Jenkins) Reviewed-by: Arthur Heymans --- src/include/option.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/include/option.h b/src/include/option.h index 8316bd842c..74a6bbbfc2 100644 --- a/src/include/option.h +++ b/src/include/option.h @@ -18,7 +18,7 @@ static inline enum cb_err set_uint_option(const char *name, unsigned int value) return CB_CMOS_OTABLE_DISABLED; } -static inline int get_uint_option(const char *name, const unsigned int fallback) +static inline unsigned int get_uint_option(const char *name, const unsigned int fallback) { if (CONFIG(USE_OPTION_TABLE)) { unsigned int value = 0; -- cgit v1.2.3