diff options
| author | YueHaibing <yuehaibing@huawei.com> | 2019-04-28 04:28:27 -0400 |
|---|---|---|
| committer | Herbert Xu <herbert@gondor.apana.org.au> | 2019-05-03 02:03:30 -0400 |
| commit | 50af32727509a36fc9bbb370c6f6cb14a961dc97 (patch) | |
| tree | 4c36959286e2a4f7af17e743acae5369ae012d0d /drivers | |
| parent | 181a9096717b8d2128eb1162d07a4f4ee0f9f4b8 (diff) | |
crypto: ccree - remove set but not used variable 'du_size'
Fixes gcc '-Wunused-but-set-variable' warning:
drivers/crypto/ccree/cc_cipher.c: In function cc_setup_key_desc:
drivers/crypto/ccree/cc_cipher.c:645:15: warning: variable du_size set but not used [-Wunused-but-set-variable]
It is never used since introduction in
commit dd8486c75085 ("crypto: ccree - move key load desc. before flow desc.")
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers')
| -rw-r--r-- | drivers/crypto/ccree/cc_cipher.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/drivers/crypto/ccree/cc_cipher.c b/drivers/crypto/ccree/cc_cipher.c index c9a40bc39698..5b58226ea24d 100644 --- a/drivers/crypto/ccree/cc_cipher.c +++ b/drivers/crypto/ccree/cc_cipher.c | |||
| @@ -642,16 +642,8 @@ static void cc_setup_key_desc(struct crypto_tfm *tfm, | |||
| 642 | int direction = req_ctx->gen_ctx.op_type; | 642 | int direction = req_ctx->gen_ctx.op_type; |
| 643 | dma_addr_t key_dma_addr = ctx_p->user.key_dma_addr; | 643 | dma_addr_t key_dma_addr = ctx_p->user.key_dma_addr; |
| 644 | unsigned int key_len = ctx_p->keylen; | 644 | unsigned int key_len = ctx_p->keylen; |
| 645 | unsigned int du_size = nbytes; | ||
| 646 | unsigned int din_size; | 645 | unsigned int din_size; |
| 647 | 646 | ||
| 648 | struct cc_crypto_alg *cc_alg = | ||
| 649 | container_of(tfm->__crt_alg, struct cc_crypto_alg, | ||
| 650 | skcipher_alg.base); | ||
| 651 | |||
| 652 | if (cc_alg->data_unit) | ||
| 653 | du_size = cc_alg->data_unit; | ||
| 654 | |||
| 655 | switch (cipher_mode) { | 647 | switch (cipher_mode) { |
| 656 | case DRV_CIPHER_CBC: | 648 | case DRV_CIPHER_CBC: |
| 657 | case DRV_CIPHER_CBC_CTS: | 649 | case DRV_CIPHER_CBC_CTS: |
