diff options
| author | John Rigby <john.rigby@linaro.org> | 2010-10-13 13:57:32 -0600 | 
|---|---|---|
| committer | Wolfgang Denk <wd@denx.de> | 2010-10-18 22:50:17 +0200 | 
| commit | d1263fced226c2fbe2554b260ea51a7b2ce58b33 (patch) | |
| tree | 2df0a259a325f0bbd0ca2b900125f471d9273fac | |
| parent | 758b39979d8a70b91f70d6684119156032841c4a (diff) | |
| download | olio-uboot-2014.01-d1263fced226c2fbe2554b260ea51a7b2ce58b33.tar.xz olio-uboot-2014.01-d1263fced226c2fbe2554b260ea51a7b2ce58b33.zip | |
common/image.c remove extra calls to be32_to_cpu in boot_get_fdt
fdt_totalsize returns size in cpu endian so don't call be32_to_cpu
on the result.  This was harmless on big endian platforms but not
on little endian ARMs.
Signed-off-by: John Rigby <john.rigby@linaro.org>
| -rw-r--r-- | common/image.c | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/common/image.c b/common/image.c index f59904d3a..dda302566 100644 --- a/common/image.c +++ b/common/image.c @@ -1561,7 +1561,7 @@ int boot_get_fdt (int flag, int argc, char * const argv[], bootm_headers_t *imag  				goto error;  			} -			if (be32_to_cpu (fdt_totalsize (fdt_blob)) != fdt_len) { +			if (fdt_totalsize(fdt_blob) != fdt_len) {  				fdt_error ("fdt size != image size");  				goto error;  			} @@ -1575,7 +1575,7 @@ int boot_get_fdt (int flag, int argc, char * const argv[], bootm_headers_t *imag  	}  	*of_flat_tree = fdt_blob; -	*of_size = be32_to_cpu (fdt_totalsize (fdt_blob)); +	*of_size = fdt_totalsize(fdt_blob);  	debug ("   of_flat_tree at 0x%08lx size 0x%08lx\n",  			(ulong)*of_flat_tree, *of_size); |