fix return error msj

retval was not correctly propagated
This commit is contained in:
Rodrigo L. Rosa 2011-08-09 11:24:42 -07:00 committed by Øyvind Harboe
parent 6e5c37be29
commit d1a16ce9d6
1 changed files with 3 additions and 3 deletions

View File

@ -109,7 +109,7 @@ COMMAND_HANDLER(handle_flash_info_command)
LOG_ERROR("error retrieving flash info");
}
return ERROR_OK;
return retval;
}
COMMAND_HANDLER(handle_flash_probe_command)
@ -185,7 +185,7 @@ COMMAND_HANDLER(handle_flash_erase_check_command)
erase_state);
}
return ERROR_OK;
return retval;
}
COMMAND_HANDLER(handle_flash_erase_address_command)
@ -355,7 +355,7 @@ COMMAND_HANDLER(handle_flash_protect_command)
(int) last, p->bank_number);
}
return ERROR_OK;
return retval;
}
COMMAND_HANDLER(handle_flash_write_image_command)