summaryrefslogtreecommitdiff
path: root/common/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/main.c')
-rw-r--r--common/main.c18
1 files changed, 3 insertions, 15 deletions
diff --git a/common/main.c b/common/main.c
index 0e9d0afa9e..67fba14505 100644
--- a/common/main.c
+++ b/common/main.c
@@ -163,21 +163,9 @@ test_mockable __keep int main(void)
*
* Only the Read-Only firmware needs to do the signature check.
*/
- if (system_get_image_copy() == SYSTEM_IMAGE_RO) {
-#if defined(CONFIG_RWSIG_DONT_CHECK_ON_PIN_RESET)
- /*
- * If system was reset by reset-pin, do not jump and wait for
- * command from host
- */
- if (system_get_reset_flags() == EC_RESET_FLAG_RESET_PIN)
- CPRINTS("Hard pin-reset detected, disable RW jump");
- else
-#endif
- {
- if (rwsig_check_signature())
- rwsig_jump_now();
- }
- }
+ if (system_get_image_copy() == SYSTEM_IMAGE_RO &&
+ rwsig_check_signature())
+ rwsig_jump_now();
#endif
#endif /* !CONFIG_VBOOT_EC */