diff options
author | Chia-Wei Wang <chiawei_wang@aspeedtech.com> | 2021-10-27 09:17:24 +0300 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2021-11-18 01:04:59 +0300 |
commit | deea089077dfcba05c47513bdaaa4d383217ce40 (patch) | |
tree | e180596e51b28d01b81ee3a3d0805a0f87615e2f /boot/image-fit.c | |
parent | faf5d4d53d435bb4e15768cc135b6268b5104bbc (diff) | |
download | u-boot-deea089077dfcba05c47513bdaaa4d383217ce40.tar.xz |
image: fit: Fix parameter name for hash algorithm
Fix inconsistent function parameter name of the hash algorithm.
Signed-off-by: Chia-Wei Wang <chiawei_wang@aspeedtech.com>
Fixes: 92055e138f2 ("image: Drop if/elseif hash selection in calculate_hash()")
Reviewed-by: Joel Stanley <joel@jms.id.au>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'boot/image-fit.c')
-rw-r--r-- | boot/image-fit.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/boot/image-fit.c b/boot/image-fit.c index 33b4a46028..b629339f4e 100644 --- a/boot/image-fit.c +++ b/boot/image-fit.c @@ -1202,7 +1202,7 @@ int fit_set_timestamp(void *fit, int noffset, time_t timestamp) * calculate_hash - calculate and return hash for provided input data * @data: pointer to the input data * @data_len: data length - * @algo: requested hash algorithm + * @name: requested hash algorithm name * @value: pointer to the char, will hold hash value data (caller must * allocate enough free space) * value_len: length of the calculated hash @@ -1230,7 +1230,7 @@ int calculate_hash(const void *data, int data_len, const char *name, return -1; } - hash_algo = hash_algo_lookup_by_name(algo); + hash_algo = hash_algo_lookup_by_name(name); if (hash_algo == HASH_ALGO_INVALID) { debug("Unsupported hash algorithm\n"); return -1; |