X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=blobdiff_plain;f=src%2Fflash%2Fnor%2Fkinetis_ke.c;h=b7a6a1ece15da6e78c79e7776243c1042dbfad93;hp=4ccbe76ce44a1e03a5beb5b7516008cc9d612d80;hb=cb2f21bf3608f24de5c2e4219626cc464269e830;hpb=5396ec5dcc64354c8101f8d3f16d498ca3b10326 diff --git a/src/flash/nor/kinetis_ke.c b/src/flash/nor/kinetis_ke.c index 4ccbe76ce4..b7a6a1ece1 100644 --- a/src/flash/nor/kinetis_ke.c +++ b/src/flash/nor/kinetis_ke.c @@ -28,6 +28,9 @@ * but WITHOUT ANY WARRANTY; without even the implied warranty of * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * ***************************************************************************/ #ifdef HAVE_CONFIG_H @@ -475,14 +478,13 @@ int kinetis_ke_stop_watchdog(struct target *target) watchdog_algorithm->address, 0, 100000, &armv7m_info); if (retval != ERROR_OK) { LOG_ERROR("Error executing Kinetis KE watchdog algorithm"); - retval = ERROR_FAIL; } else { LOG_INFO("Watchdog stopped"); } target_free_working_area(target, watchdog_algorithm); - return ERROR_OK; + return retval; } COMMAND_HANDLER(kinetis_ke_disable_wdog_handler) @@ -1241,7 +1243,7 @@ static int kinetis_ke_blank_check(struct flash_bank *bank) return ERROR_OK; } -static const struct command_registration kinetis_ke_securtiy_command_handlers[] = { +static const struct command_registration kinetis_ke_security_command_handlers[] = { { .name = "check_security", .mode = COMMAND_EXEC, @@ -1272,7 +1274,7 @@ static const struct command_registration kinetis_ke_exec_command_handlers[] = { .mode = COMMAND_ANY, .help = "", .usage = "", - .chain = kinetis_ke_securtiy_command_handlers, + .chain = kinetis_ke_security_command_handlers, }, { .name = "disable_wdog",