summaryrefslogtreecommitdiff
path: root/common/image-fit.c
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.m@jp.panasonic.com>2013-09-19 12:10:18 +0900
committerTom Rini <trini@ti.com>2013-09-20 10:30:54 -0400
commit2f0877c7f4fa53ba4aedf2333908057a3f6ac413 (patch)
treea3c3d5ac50080113ca7c3e95ad7df195b1ca1098 /common/image-fit.c
parent50c2a91b67c2ce37cb47de2bd30dfc721769aaae (diff)
downloadu-boot-imx-2f0877c7f4fa53ba4aedf2333908057a3f6ac413.zip
u-boot-imx-2f0877c7f4fa53ba4aedf2333908057a3f6ac413.tar.gz
u-boot-imx-2f0877c7f4fa53ba4aedf2333908057a3f6ac413.tar.bz2
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-fit.c')
-rw-r--r--common/image-fit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/image-fit.c b/common/image-fit.c
index 7ebc33e..cf4b67e 100644
--- a/common/image-fit.c
+++ b/common/image-fit.c
@@ -1596,7 +1596,7 @@ int fit_image_load(bootm_headers_t *images, const char *prop_name, ulong addr,
len = (ulong)size;
/* verify that image data is a proper FDT blob */
- if (image_type == IH_TYPE_FLATDT && fdt_check_header((char *)buf)) {
+ if (image_type == IH_TYPE_FLATDT && fdt_check_header(buf)) {
puts("Subimage data is not a FDT");
return -ENOEXEC;
}