On Fri, May 01, 2020 at 10:31:13PM -0700, Eric Biggers wrote:
From: Eric Biggers <redacted>
Instead of manually allocating a 'struct shash_desc' on the stack and
calling crypto_shash_digest(), switch to using the new helper function
crypto_shash_tfm_digest() which does this for us.
Cc: Krzysztof Kozlowski <krzk@kernel.org>
Cc: Vladimir Zapolskiy <vz@mleia.com>
Cc: Kamil Konieczny <redacted>
Signed-off-by: Eric Biggers <redacted>
---
drivers/crypto/s5p-sss.c | 39 ++++++---------------------------------
1 file changed, 6 insertions(+), 33 deletions(-)
Acked-by: Krzysztof Kozlowski <krzk@kernel.org>
Best regards,
Krzysztof