[PATCH] image-fit: don't set compression if it can't be read
Simon Glass
sjg at chromium.org
Mon Aug 15 19:37:52 CEST 2022
On Mon, 15 Aug 2022 at 04:39, Daniel Golle <daniel at makrotopia.org> wrote:
>
> fit_image_get_comp() should not set value -1 in case it can't read
> the compression node. Instead, leave the value untouched in that case
> as it can be absent and a default value previously defined by the
> caller of fit_image_get_comp() should be used.
>
> As a result the warning message
> WARNING: 'compression' nodes for ramdisks are deprecated, please fix your .its file!
> no longer shows if the compression node is actually absent.
>
> Signed-off-by: Daniel Golle <daniel at makrotopia.org>
> ---
> boot/bootm.c | 6 ++----
> boot/image-fit.c | 3 +--
> cmd/ximg.c | 7 ++-----
> 3 files changed, 5 insertions(+), 11 deletions(-)
Reviewed-by: Simon Glass <sjg at chromium.org>
More information about the U-Boot
mailing list