Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 642ed0c3 authored by Gilad Ben-Yossef's avatar Gilad Ben-Yossef Committed by Greg Kroah-Hartman
Browse files

staging: ccree: remove dead code



The inflight_counter field is updated in a single location and
never used. Remove it.

Signed-off-by: default avatarGilad Ben-Yossef <gilad@benyossef.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 414a48e8
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -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
+0 −1
Original line number Diff line number Diff line
@@ -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;
};