]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
crypto: stm32 - remove unnecessary alignmask
authorEric Biggers <ebiggers@google.com>
Thu, 19 Oct 2023 05:53:28 +0000 (22:53 -0700)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 27 Oct 2023 10:04:24 +0000 (18:04 +0800)
commit0174275a08e1ed72b3a4ddee462ee3d75c13cc65
tree13e25954ef5100a9971f41cc28cbb534766ca466
parent9924003807a9738b3f5295174b6c623f5a85eb97
crypto: stm32 - remove unnecessary alignmask

The stm32 crc32 algorithms set a nonzero alignmask, but they don't seem
to actually need it.  Their ->update function already has code that
handles aligning the data to the same alignment that the alignmask
specifies, their ->setkey function already uses get_unaligned_le32(),
and their ->final function already uses put_unaligned_le32().
Therefore, stop setting the alignmask.  This will allow these algorithms
to keep being registered after alignmask support is removed from shash.

Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/stm32/stm32-crc32.c