VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   33 Branches   55 Tags
author: Liu Shixin <liushixin2@huawei.com> 2020-09-14 12:17:46 +0800 committer: Herbert Xu <herbert@gondor.apana.org.au> 2020-09-25 17:48:12 +1000 commit: fb7c2f4654fee2a41703b3d51d9a97492c2838e9 parent: 228d284aac61283cde508a925d666f854b57af63
Commit Summary:
crypto: atmel-aes - convert to use be32_add_cpu()
Diffstat:
1 file changed, 1 insertion, 1 deletion
diff --git a/drivers/crypto/atmel-aes.c b/drivers/crypto/atmel-aes.c
index a6e14491e080..b1d286004295 100644
--- a/drivers/crypto/atmel-aes.c
+++ b/drivers/crypto/atmel-aes.c
@@ -1539,7 +1539,7 @@ static int atmel_aes_gcm_length(struct atmel_aes_dev *dd)
 
 	/* Write incr32(J0) into IV. */
 	j0_lsw = j0[3];
-	j0[3] = cpu_to_be32(be32_to_cpu(j0[3]) + 1);
+	be32_add_cpu(&j0[3], 1);
 	atmel_aes_write_block(dd, AES_IVR(0), j0);
 	j0[3] = j0_lsw;