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)
commitb876eb87e91d6705ef946090af16175dfb5ce1f9
treee92064f47602172ef2779f87dc99b3eac663ce06
parent918adf8e07337719750c57be0939824247973b1e
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