Browse Source

fix return error msj

retval was not correctly propagated
tags/v0.6.0-rc1
Rodrigo L. Rosa 12 years ago
committed by Øyvind Harboe
parent
commit
d1a16ce9d6
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      src/flash/nor/tcl.c

+ 3
- 3
src/flash/nor/tcl.c 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)


Loading…
Cancel
Save