]> git.baikalelectronics.ru Git - uboot.git/commit
image: Avoid switch default in image_decomp()
authorSimon Glass <sjg@chromium.org>
Sat, 25 Sep 2021 13:03:11 +0000 (07:03 -0600)
committerTom Rini <trini@konsulko.com>
Fri, 8 Oct 2021 19:53:26 +0000 (15:53 -0400)
commitb0492e4324dc4c3c2c70e5e2d3d1685fe303f7e5
treee92064f47602172ef2779f87dc99b3eac663ce06
parent89b693beaf4d28855dd574c982c85252071aa77e
image: Avoid switch default in image_decomp()

At present this function is full of preprocessor macros. Adjust it to
check for an unsupported algorithm after the switch(). This will allow
us to drop the macros.

Fix up the return-value path and an extra blank line while we are here.

Signed-off-by: Simon Glass <sjg@chromium.org>
common/image.c