From 0a3b6213bbb8b9b3edaec944610eec48d213a81e Mon Sep 17 00:00:00 2001 From: oharboe Date: Mon, 13 Oct 2008 06:52:05 +0000 Subject: Laurentiu Cocanu - 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 --- src/target/image.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/target/image.c') diff --git a/src/target/image.c b/src/target/image.c index 48c6a6c8..a8753ac9 100644 --- a/src/target/image.c +++ b/src/target/image.c @@ -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) -- cgit v1.2.3