From patchwork Tue Oct 31 11:56:17 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gilad Ben-Yossef X-Patchwork-Id: 117601 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp3807824qgn; Tue, 31 Oct 2017 04:56:43 -0700 (PDT) X-Google-Smtp-Source: ABhQp+RmxsbJYEKS9Veb5XYEZ3Ou5lROidji4op1k2TscNPYjjbeNJqYmUzNns1wCaZEj6OxR6Sw X-Received: by 10.84.195.3 with SMTP id i3mr1692332pld.322.1509451003005; Tue, 31 Oct 2017 04:56:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1509451002; cv=none; d=google.com; s=arc-20160816; b=FqUhwU1cZbMspil+/+b8m7XpN+kdDK89XP7nsZKXnOGeA1JYpp1oQJ0JiLsbzNgQeR 5O8KEmlSAWvtzy8qgd7L8CYOz+JY5CMVWhP0iJLNEtQsaFcXmbY5GO3DJ/QM+53Btxyh nM+43a0z5n5Kg/WeOPjHSKHlU/gcMjh7VlDhY313d3tMpvHTXePpF16FKVM2QPsMuCvm XO2TQVCaN7cp/9lI20GDFVinDmA8J/uSamPfuLfi1hwpAk/sO1o9IHiJo8A43/ZX62Cy NQTA4MShVIoWnFdVY/HdDBwFUkfDvtWWE+hag18aDLbK5XkX6Ii+w+auJjSZ9uhgQJsH JOhQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=X6a3qs9mhltJT9z5URJCv6CWyKFz6qolWejNqG9mNHs=; b=dj24MgJckcF9pi/lq1U8xnLrFZO80H2tDuMe+1hxz4sC06+NSvDDHjWw9gYv32t+Xw 8BNbb64keNluUrZ3vElh2hS8LrHTrR6OMtHnN4EcTwWiT5e4QI32xeqgKji7Sljf1l+W gJZ34zLf4OFTs3QFkbUCdzzSVgCQjdhRMJ8vwO4LUffoc15DCcC+kbG3Bi3vyk9pTUtH KtJLGGVW7Vm71tHI18z5diXnFgv48EdOwvIBOphwEun7wztzU1yx7olixg41dlO1cUfq ynmPHYTJuX3Qoca5QNhVNvfXY0+3DMNkAs9YdIDCRrpdAwxL+uj71WAs5WpXw2kNkjB/ XWLw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k4si1373534pgs.459.2017.10.31.04.56.42; Tue, 31 Oct 2017 04:56:42 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752386AbdJaL4l (ORCPT + 27 others); Tue, 31 Oct 2017 07:56:41 -0400 Received: from foss.arm.com ([217.140.101.70]:34768 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752126AbdJaL4i (ORCPT ); Tue, 31 Oct 2017 07:56:38 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id DF2701435; Tue, 31 Oct 2017 04:56:37 -0700 (PDT) Received: from sugar.kfn.arm.com (unknown [10.45.48.167]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 85D093F483; Tue, 31 Oct 2017 04:56:35 -0700 (PDT) From: Gilad Ben-Yossef To: Greg Kroah-Hartman Cc: Ofir Drang , linux-crypto@vger.kernel.org, driverdev-devel@linuxdriverproject.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: [PATCH 3/3] staging: ccree: remove dead code Date: Tue, 31 Oct 2017 11:56:17 +0000 Message-Id: <1509450978-17784-4-git-send-email-gilad@benyossef.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1509450978-17784-1-git-send-email-gilad@benyossef.com> References: <1509450978-17784-1-git-send-email-gilad@benyossef.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The inflight_counter field is updated in a single location and never used. Remove it. Signed-off-by: Gilad Ben-Yossef --- drivers/staging/ccree/ssi_cipher.c | 4 ---- drivers/staging/ccree/ssi_driver.h | 1 - 2 files changed, 5 deletions(-) -- 2.7.4 diff --git a/drivers/staging/ccree/ssi_cipher.c b/drivers/staging/ccree/ssi_cipher.c index 0784c86..42844ae 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 diff --git a/drivers/staging/ccree/ssi_driver.h b/drivers/staging/ccree/ssi_driver.h index 488f665..e01c880 100644 --- a/drivers/staging/ccree/ssi_driver.h +++ b/drivers/staging/ccree/ssi_driver.h @@ -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; };