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:
oharboe
2008-10-13 06:52:05 +00:00
parent 809a796209
commit 0a3b6213bb
8 changed files with 110 additions and 53 deletions

View File

@@ -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)