[PATCH] image.h: make image_sign_info.fit point to const
Simon Glass
sjg at chromium.org
Fri Oct 29 03:16:20 CEST 2021
On Sun, 17 Oct 2021 at 23:49, Hannu Lounento <hannu.lounento at vaisala.com> wrote:
>
> 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 at vaisala.com>
> ---
> common/image-fit-sig.c | 2 +-
> include/image.h | 2 +-
> 2 files changed, 2 insertions(+), 2 deletions(-)
Reviewed-by: Simon Glass <sjg at chromium.org>
More information about the U-Boot
mailing list