diff options
| author | Simon Glass <sjg@chromium.org> | 2011-11-19 08:20:54 +0000 | 
|---|---|---|
| committer | Wolfgang Denk <wd@denx.de> | 2011-12-05 23:05:04 +0100 | 
| commit | 94e9d4c3e8e01a803d8e9aedcf86664795b33605 (patch) | |
| tree | 4082e0cf7359c6b9d00b3b4c90cf0e67c5a8b4ac /tools/aisimage.c | |
| parent | e6e556c16b7a6db9d78b8765dee05ce9ed7537f0 (diff) | |
| download | olio-uboot-2014.01-94e9d4c3e8e01a803d8e9aedcf86664795b33605.tar.xz olio-uboot-2014.01-94e9d4c3e8e01a803d8e9aedcf86664795b33605.zip | |
Fix tsize warning in tools/aisimage.c
This fixes the following warning with gcc 4.4.3.
aisimage.c: In function 'aisimage_generate':
aisimage.c:365: warning: 'tsize' may be used uninitialized in this function
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/aisimage.c')
| -rw-r--r-- | tools/aisimage.c | 6 | 
1 files changed, 3 insertions, 3 deletions
| diff --git a/tools/aisimage.c b/tools/aisimage.c index 6a1011194..c645708da 100644 --- a/tools/aisimage.c +++ b/tools/aisimage.c @@ -180,7 +180,7 @@ static void aisimage_print_header(const void *hdr)  static uint32_t *ais_insert_cmd_header(uint32_t cmd, uint32_t nargs,  	uint32_t *parms, struct image_type_params *tparams, -	uint32_t *ptr, uint32_t size) +	uint32_t *ptr)  {  	int i; @@ -285,7 +285,7 @@ static int aisimage_generate(struct mkimage_params *params,  	uint32_t nargs, cmd_parms[10];  	uint32_t value, size;  	char *name = params->imagename; -	uint32_t *aishdr, tsize; +	uint32_t *aishdr;  	fd = fopen(name, "r");  	if (fd == 0) { @@ -363,7 +363,7 @@ static int aisimage_generate(struct mkimage_params *params,  		if (cmd != CMD_INVALID) {  			/* Now insert the command into the header */  			aishdr = ais_insert_cmd_header(cmd, nargs, cmd_parms, -				tparams, aishdr, tsize); +				tparams, aishdr);  		}  	} |