summaryrefslogtreecommitdiffstats
path: root/drivers/char/hw_random
diff options
context:
space:
mode:
authorEric Biggers <ebiggers@google.com>2020-07-08 09:39:43 -0700
committerHerbert Xu <herbert@gondor.apana.org.au>2020-07-16 21:49:05 +1000
commit9d4cafa5a04aeba68cc12de47ffcd975079e2f83 (patch)
treebcd185a9b96094033b07264cdde730c2210d5e74 /drivers/char/hw_random
parent5a7a0d9400677a5e88fdb362c4d32171384068f2 (diff)
downloadlinux-9d4cafa5a04aeba68cc12de47ffcd975079e2f83.tar.bz2
ASoC: cros_ec_codec: use sha256() instead of open coding
Now that there's a function that calculates the SHA-256 digest of a buffer in one step, use it instead of sha256_init() + sha256_update() + sha256_final(). Also simplify the code by inlining calculate_sha256() into its caller and switching a debug log statement to use %*phN instead of bin2hex(). Acked-by: Tzung-Bi Shih <tzungbi@google.com> Reviewed-by: Ard Biesheuvel <ardb@kernel.org> Cc: alsa-devel@alsa-project.org Cc: Ard Biesheuvel <ardb@kernel.org> Cc: Cheng-Yi Chiang <cychiang@chromium.org> Cc: Enric Balletbo i Serra <enric.balletbo@collabora.com> Cc: Guenter Roeck <groeck@chromium.org> Cc: Tzung-Bi Shih <tzungbi@google.com> Signed-off-by: Eric Biggers <ebiggers@google.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/char/hw_random')
0 files changed, 0 insertions, 0 deletions