blob: ee64bfe1fc841075611613ead2c05f797b5d3a7f [file] [log] [blame]
b.liue9582032025-04-17 19:18:16 +08001From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
2From: Herbert Xu <herbert@gondor.apana.org.au>
3Date: Thu, 24 Sep 2020 13:29:04 +1000
4Subject: [PATCH] crypto: x86/poly1305 - Remove assignments with no effect
5
6commit 4a0c1de64bf9d9027a6f19adfba89fc27893db23 upstream.
7
8This patch removes a few ineffectual assignments from the function
9crypto_poly1305_setdctxkey.
10
11Reported-by: kernel test robot <lkp@intel.com>
12Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
13Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
14---
15 arch/x86/crypto/poly1305_glue.c | 3 ---
16 1 file changed, 3 deletions(-)
17
18--- a/arch/x86/crypto/poly1305_glue.c
19+++ b/arch/x86/crypto/poly1305_glue.c
20@@ -157,9 +157,6 @@ static unsigned int crypto_poly1305_setd
21 dctx->s[1] = get_unaligned_le32(&inp[4]);
22 dctx->s[2] = get_unaligned_le32(&inp[8]);
23 dctx->s[3] = get_unaligned_le32(&inp[12]);
24- inp += POLY1305_BLOCK_SIZE;
25- len -= POLY1305_BLOCK_SIZE;
26- acc += POLY1305_BLOCK_SIZE;
27 dctx->sset = true;
28 }
29 }