diff --git a/board/keymile/common/common.c b/board/keymile/common/common.c
index 0829b7fa0666574ed2f82bdd0a8c5e48001cf404..408079c9a14976386137159f563b0dc3e334f811 100644
--- a/board/keymile/common/common.c
+++ b/board/keymile/common/common.c
@@ -354,9 +354,6 @@ static int do_checktestboot(cmd_tbl_t *cmdtp, int flag, int argc,
 
 #if defined(CONFIG_POST)
 	testpin = post_hotkeys_pressed();
-#endif
-#if defined(CONFIG_MGCOGE3NE)
-	testpin = get_testpin();
 #endif
 	s = getenv("test_bank");
 	/* when test_bank is not set, act as if testpin is not asserted */