Laurentiu Cocanu - memory read/write and exit() error path fixes
git-svn-id: svn://svn.berlios.de/openocd/trunk@1064 b42882b7-edfa-0310-969c-e2dbd0fdcd60
This commit is contained in:
@@ -410,7 +410,7 @@ int ft2232_send_and_recv(jtag_command_t *first, jtag_command_t *last)
|
||||
if ((retval = ft2232_write(ft2232_buffer, ft2232_buffer_size, &bytes_written)) != ERROR_OK)
|
||||
{
|
||||
LOG_ERROR("couldn't write MPSSE commands to FT2232");
|
||||
exit(-1);
|
||||
return retval;
|
||||
}
|
||||
|
||||
#ifdef _DEBUG_USB_IO_
|
||||
@@ -429,7 +429,7 @@ int ft2232_send_and_recv(jtag_command_t *first, jtag_command_t *last)
|
||||
if ((retval = ft2232_read(ft2232_buffer, ft2232_expect_read, &bytes_read)) != ERROR_OK)
|
||||
{
|
||||
LOG_ERROR("couldn't read from FT2232");
|
||||
exit(-1);
|
||||
return retval;
|
||||
}
|
||||
|
||||
#ifdef _DEBUG_USB_IO_
|
||||
|
||||
Reference in New Issue
Block a user