diff options
| author | Masahiro Yamada <yamada.m@jp.panasonic.com> | 2013-09-19 12:10:18 +0900 | 
|---|---|---|
| committer | Tom Rini <trini@ti.com> | 2013-09-20 10:30:54 -0400 | 
| commit | 2f0877c7f4fa53ba4aedf2333908057a3f6ac413 (patch) | |
| tree | a3c3d5ac50080113ca7c3e95ad7df195b1ca1098 /common/image.c | |
| parent | 50c2a91b67c2ce37cb47de2bd30dfc721769aaae (diff) | |
| download | olio-uboot-2014.01-2f0877c7f4fa53ba4aedf2333908057a3f6ac413.tar.xz olio-uboot-2014.01-2f0877c7f4fa53ba4aedf2333908057a3f6ac413.zip | |
FIT: delete unnecessary casts
Becuase fdt_check_header function takes (const void *)
type argument, the argument should be passed to it
without being casted to (char *).
Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Diffstat (limited to 'common/image.c')
| -rw-r--r-- | common/image.c | 6 | 
1 files changed, 1 insertions, 5 deletions
| diff --git a/common/image.c b/common/image.c index 802a79e90..b0ae58ff3 100644 --- a/common/image.c +++ b/common/image.c @@ -652,17 +652,13 @@ int genimg_get_format(const void *img_addr)  {  	ulong format = IMAGE_FORMAT_INVALID;  	const image_header_t *hdr; -#if defined(CONFIG_FIT) || defined(CONFIG_OF_LIBFDT) -	char *fit_hdr; -#endif  	hdr = (const image_header_t *)img_addr;  	if (image_check_magic(hdr))  		format = IMAGE_FORMAT_LEGACY;  #if defined(CONFIG_FIT) || defined(CONFIG_OF_LIBFDT)  	else { -		fit_hdr = (char *)img_addr; -		if (fdt_check_header(fit_hdr) == 0) +		if (fdt_check_header(img_addr) == 0)  			format = IMAGE_FORMAT_FIT;  	}  #endif |