Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

crypto: atmel-aes - convert to use be32_add_cpu()

Convert cpu_to_be32(be32_to_cpu(E1) + E2) to use be32_add_cpu().

Signed-off-by: Liu Shixin <liushixin2@huawei.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>

authored by

Liu Shixin and committed by
Herbert Xu
fb7c2f46 228d284a

+1 -1
+1 -1
drivers/crypto/atmel-aes.c
··· 1539 1539 1540 1540 /* Write incr32(J0) into IV. */ 1541 1541 j0_lsw = j0[3]; 1542 - j0[3] = cpu_to_be32(be32_to_cpu(j0[3]) + 1); 1542 + be32_add_cpu(&j0[3], 1); 1543 1543 atmel_aes_write_block(dd, AES_IVR(0), j0); 1544 1544 j0[3] = j0_lsw; 1545 1545