diff options
author | Alexandru Gagniuc <mr.nuke.me@gmail.com> | 2021-09-02 19:54:21 -0500 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2021-09-08 16:12:09 -0400 |
commit | 92055e138f2873034e2dfd7e1308e30c9bbef3b1 (patch) | |
tree | abd5487ecccb37a16bdf8f0c642644279448e6bd /include | |
parent | fe54aeaa4acbb41880b05acef9ef949e62d299dd (diff) | |
download | u-boot-92055e138f2873034e2dfd7e1308e30c9bbef3b1.tar.gz u-boot-92055e138f2873034e2dfd7e1308e30c9bbef3b1.tar.bz2 u-boot-92055e138f2873034e2dfd7e1308e30c9bbef3b1.zip |
image: Drop if/elseif hash selection in calculate_hash()
calculate_hash() would try to select the appropriate hashing function
by a if/elseif contruct. But that is exactly why hash_lookup_algo()
exists, so use it instead.
This does mean that we now have to 'select HASH' to make sure we get
the hash_lookup_algo() symbol. However, the change makes sense because
even basic FITs will have to deal with "hash" nodes.
My only concern is that the 'select SPL_HASH' might cause some
platform to grow above its SPL size allowance
Signed-off-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
[trini: Make FSL_CAAM be implied only on ARM && SPL]
Signed-off-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions