diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2021-06-15 08:14:52 +0200 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2021-06-24 08:51:34 +0200 |
commit | d886d55f4c7345ea1628ecc49eaea3f496f8d3cb (patch) | |
tree | f73d2fb122a511695656d090c5dbd8690260f909 /drivers | |
parent | crypto: sl3516 - fix duplicated inclusion (diff) | |
download | linux-d886d55f4c7345ea1628ecc49eaea3f496f8d3cb.tar.xz linux-d886d55f4c7345ea1628ecc49eaea3f496f8d3cb.zip |
crypto: sa2ul - Remove unused auth_len variable
This patch removes the unused auth_len variable from
sa_aead_dma_in_callback.
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/crypto/sa2ul.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/crypto/sa2ul.c b/drivers/crypto/sa2ul.c index 51bb69bc573c..544d7040cfc5 100644 --- a/drivers/crypto/sa2ul.c +++ b/drivers/crypto/sa2ul.c @@ -1698,7 +1698,6 @@ static void sa_aead_dma_in_callback(void *data) size_t pl, ml; int i; int err = 0; - u16 auth_len; u32 *mdptr; sa_sync_from_device(rxd); @@ -1711,13 +1710,10 @@ static void sa_aead_dma_in_callback(void *data) for (i = 0; i < (authsize / 4); i++) mdptr[i + 4] = swab32(mdptr[i + 4]); - auth_len = req->assoclen + req->cryptlen; - if (rxd->enc) { scatterwalk_map_and_copy(&mdptr[4], req->dst, start, authsize, 1); } else { - auth_len -= authsize; start -= authsize; scatterwalk_map_and_copy(auth_tag, req->src, start, authsize, 0); |