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