hash: Drop some #ifdefs in hash.c
authorSimon Glass <sjg@chromium.org>
Sun, 26 Sep 2021 01:43:19 +0000 (19:43 -0600)
committerTom Rini <trini@konsulko.com>
Fri, 8 Oct 2021 19:53:26 +0000 (15:53 -0400)
commitd54f7e3f2328ea361c3a58714127ed9b3ad0f70c
tree6ab1ee6379b94a8ba5fa4c7d9d767b8c21f6cd1a
parent2c21256b27d70b5950bd059330cdab027fb6ab7e
hash: Drop some #ifdefs in hash.c

We can use the __maybe_unused attribute to avoid some of the #ifdefs in
this file. Update the functions accordingly.

Note: The actual hashing interface is still a mess, with four separate
combinations and lots of #ifdefs. This should really use a driver
approach, e.g. as is done with partition drivers.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
common/hash.c