| b.liu | e958203 | 2025-04-17 19:18:16 +0800 | [diff] [blame^] | 1 | From 0000000000000000000000000000000000000000 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] crypto: x86/poly1305 - Remove assignments with no effect | 
|  | 5 |  | 
|  | 6 | commit 4a0c1de64bf9d9027a6f19adfba89fc27893db23 upstream. | 
|  | 7 |  | 
|  | 8 | This patch removes a few ineffectual assignments from the function | 
|  | 9 | crypto_poly1305_setdctxkey. | 
|  | 10 |  | 
|  | 11 | Reported-by: kernel test robot <lkp@intel.com> | 
|  | 12 | Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> | 
|  | 13 | Signed-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 | } |