diff options
author | 2017-11-02 08:10:23 +0000 | |
---|---|---|
committer | 2017-11-06 16:46:03 +0100 | |
commit | 642ed0c32bc89a6cc221b0d007ede057bae464a6 (patch) | |
tree | d2f23ba903a4e53ff3934e9476a52494631ad7bf /drivers/staging/ccree/ssi_cipher.c | |
parent | staging: ccree: handle limiting of DMA masks (diff) | |
download | linux-642ed0c32bc89a6cc221b0d007ede057bae464a6.tar.gz linux-642ed0c32bc89a6cc221b0d007ede057bae464a6.tar.bz2 linux-642ed0c32bc89a6cc221b0d007ede057bae464a6.zip |
staging: ccree: remove dead code
The inflight_counter field is updated in a single location and
never used. Remove it.
Signed-off-by: Gilad Ben-Yossef <gilad@benyossef.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/ccree/ssi_cipher.c')
-rw-r--r-- | drivers/staging/ccree/ssi_cipher.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/staging/ccree/ssi_cipher.c b/drivers/staging/ccree/ssi_cipher.c index 0b691034e6f5..ee85cbf7c9ae 100644 --- a/drivers/staging/ccree/ssi_cipher.c +++ b/drivers/staging/ccree/ssi_cipher.c @@ -697,10 +697,6 @@ static int ssi_blkcipher_complete(struct device *dev, ssi_buffer_mgr_unmap_blkcipher_request(dev, req_ctx, ivsize, src, dst); kfree(req_ctx->iv); - /*Decrease the inflight counter*/ - if (ctx_p->flow_mode == BYPASS && ctx_p->drvdata->inflight_counter > 0) - ctx_p->drvdata->inflight_counter--; - if (areq) { /* * The crypto API expects us to set the req->info to the last |