]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
crypto: artpec6 - use memcpy_and_pad to simplify prepare_hash
authorThorsten Blum <thorsten.blum@linux.dev>
Mon, 9 Mar 2026 21:11:21 +0000 (22:11 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sun, 22 Mar 2026 02:17:58 +0000 (11:17 +0900)
commit326118443ec3de85708a2678dcc2c14eea417228
treebf9f4c68ca7c1f874434c11b9db9361c3f4f1a00
parent2ef3bac16fb5e9eee4fb1d722578a79b751ea58a
crypto: artpec6 - use memcpy_and_pad to simplify prepare_hash

Use memcpy_and_pad() instead of memcpy() followed by memset() to
simplify artpec6_crypto_prepare_hash().

Also fix a duplicate word in a comment and remove a now-redundant one.

Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/axis/artpec6_crypto.c