Re: [PATCH] crypto: artpec6 - use memcpy_and_pad to simplify prepare_hash

From: Herbert Xu

Date: Sat Mar 21 2026 - 04:47:02 EST


On Mon, Mar 09, 2026 at 10:11:21PM +0100, Thorsten Blum wrote:
> 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@xxxxxxxxx>
> ---
> drivers/crypto/axis/artpec6_crypto.c | 9 +++------
> 1 file changed, 3 insertions(+), 6 deletions(-)

Patch applied. Thanks.
--
Email: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt