From 7ef3d903ab1496d01a3396804ae26d36f3ad21ab Mon Sep 17 00:00:00 2001 From: Vladimir Serbinenko Date: Thu, 28 May 2015 11:25:50 +0200 Subject: x230: Clean up smihandler.c Remove dead code and dead includes. Change-Id: I5564ebfbbef6f65c275c2f94f75724f4e36472db Signed-off-by: Vladimir Serbinenko Reviewed-on: http://review.coreboot.org/10349 Tested-by: build bot (Jenkins) Reviewed-by: Edward O'Callaghan --- src/mainboard/lenovo/x230/smihandler.c | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) (limited to 'src/mainboard/lenovo') diff --git a/src/mainboard/lenovo/x230/smihandler.c b/src/mainboard/lenovo/x230/smihandler.c index 7e518ab83a..f0ef637fb5 100644 --- a/src/mainboard/lenovo/x230/smihandler.c +++ b/src/mainboard/lenovo/x230/smihandler.c @@ -23,14 +23,8 @@ #include #include #include -#include #include -#include -#include #include -#include -#include -#include #define GPE_EC_SCI 1 #define GPE_EC_WAKE 13 @@ -51,14 +45,7 @@ int mainboard_io_trap_handler(int smif) smm_initialized = 1; } - switch (smif) { - default: - return 0; - } - - /* On success, the IO Trap Handler returns 1 - * On failure, the IO Trap Handler returns a value != 1 */ - return 1; + return 0; } static void mainboard_smi_handle_ec_sci(void) -- cgit v1.2.3