Laurentiu Cocanu <laurentiu.cocanu@zylin.com> - Added additional error checks mostly to src/target/target.c
git-svn-id: svn://svn.berlios.de/openocd/trunk@1041 b42882b7-edfa-0310-969c-e2dbd0fdcd60
This commit is contained in:
@@ -912,7 +912,7 @@ int image_add_section(image_t *image, u32 base, u32 size, int flags, u8 *data)
|
||||
return ERROR_OK;
|
||||
}
|
||||
|
||||
int image_close(image_t *image)
|
||||
void image_close(image_t *image)
|
||||
{
|
||||
if (image->type == IMAGE_BINARY)
|
||||
{
|
||||
@@ -994,8 +994,6 @@ int image_close(image_t *image)
|
||||
free(image->sections);
|
||||
image->sections = NULL;
|
||||
}
|
||||
|
||||
return ERROR_OK;
|
||||
}
|
||||
|
||||
int image_calculate_checksum(u8* buffer, u32 nbytes, u32* checksum)
|
||||
|
||||
Reference in New Issue
Block a user