staging: ccree: remove dead code
authorGilad Ben-Yossef <gilad@benyossef.com>
Thu, 2 Nov 2017 08:10:23 +0000 (08:10 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 6 Nov 2017 15:46:03 +0000 (16:46 +0100)
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>
drivers/staging/ccree/ssi_cipher.c
drivers/staging/ccree/ssi_driver.h

index 0b691034e6f5f4e485f96d801ff120f1baffb622..ee85cbf7c9ae8b3b8d4af4584e449fd609c769f1 100644 (file)
@@ -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
index 488f66541c4c78108c0052be209cadc9481c35b7..e01c880af0bfe8b4ea035b56a529c9955074089e 100644 (file)
@@ -134,7 +134,6 @@ struct ssi_drvdata {
        void *fips_handle;
        void *ivgen_handle;
        void *sram_mgr_handle;
-       u32 inflight_counter;
        struct clk *clk;
        bool coherent;
 };