File tree Expand file tree Collapse file tree 1 file changed +0
-15
lines changed Expand file tree Collapse file tree 1 file changed +0
-15
lines changed Original file line number Diff line number Diff line change @@ -111,29 +111,14 @@ boot_go(struct boot_rsp *rsp)
111
111
if (rc != 0 )
112
112
goto out ;
113
113
114
- #ifdef MCUBOOT_RAM_LOAD
115
- static struct boot_loader_state state ;
116
- state .imgs [0 ][0 ].hdr = _hdr ;
117
-
118
- rc = boot_load_image_to_sram (& state );
119
- if (rc != 0 )
120
- goto out ;
121
- #endif
122
-
123
114
#ifdef MCUBOOT_VALIDATE_PRIMARY_SLOT
124
115
FIH_CALL (boot_image_validate , fih_rc , _fa_p , & _hdr );
125
116
if (FIH_NOT_EQ (fih_rc , FIH_SUCCESS )) {
126
- #ifdef MCUBOOT_RAM_LOAD
127
- boot_remove_image_from_sram (& state );
128
- #endif
129
117
goto out ;
130
118
}
131
119
#elif defined(MCUBOOT_VALIDATE_PRIMARY_SLOT_ONCE )
132
120
FIH_CALL (boot_image_validate_once , fih_rc , _fa_p , & _hdr );
133
121
if (FIH_NOT_EQ (fih_rc , FIH_SUCCESS )) {
134
- #ifdef MCUBOOT_RAM_LOAD
135
- boot_remove_image_from_sram (& state );
136
- #endif
137
122
goto out ;
138
123
}
139
124
#else
You can’t perform that action at this time.
0 commit comments