diff options
author | Hannu Lounento <hannu.lounento@vaisala.com> | 2021-10-18 08:49:03 +0300 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2021-10-31 21:26:44 +0300 |
commit | 2289629f27f743003254d0a31ae9ed6175d1dd63 (patch) | |
tree | 944350cd74c594738ce444a5c1adbc88fe9936d3 /common | |
parent | 50bff6a6f86669a8652e2bf271eeb04f77911274 (diff) | |
download | u-boot-2289629f27f743003254d0a31ae9ed6175d1dd63.tar.xz |
image.h: make image_sign_info.fit point to const
The data blob apparently does not need to be modified through the fit
field of the image_sign_info struct so make it point to const to avoid
the need to cast away constness in functions that assign a pointer to
const data to the field.
fit_image_setup_verify already had to cast away constness as it assigned
a const void * argument to the field. The cast can now be removed.
Signed-off-by: Hannu Lounento <hannu.lounento@vaisala.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'common')
-rw-r--r-- | common/image-fit-sig.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/image-fit-sig.c b/common/image-fit-sig.c index 4edebbf2d3..63e5423c92 100644 --- a/common/image-fit-sig.c +++ b/common/image-fit-sig.c @@ -85,7 +85,7 @@ static int fit_image_setup_verify(struct image_sign_info *info, memset(info, '\0', sizeof(*info)); info->keyname = fdt_getprop(fit, noffset, FIT_KEY_HINT, NULL); - info->fit = (void *)fit; + info->fit = fit; info->node_offset = noffset; info->name = algo_name; info->checksum = image_get_checksum_algo(algo_name); |