From patchwork Thu Nov 2 08:10:23 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: 117758 Delivered-To: patch@linaro.org Received: by 10.80.245.45 with SMTP id t42csp1745146edm; Thu, 2 Nov 2017 01:10:50 -0700 (PDT) X-Google-Smtp-Source: ABhQp+RGRprHCq174mkf+bE4+CwnikyHjnCvdiX51SZFvd4ob2aG72a9z8P04uluyn8uLpjNL7nz X-Received: by 10.84.164.165 with SMTP id w34mr2375211pla.308.1509610250190; Thu, 02 Nov 2017 01:10:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1509610250; cv=none; d=google.com; s=arc-20160816; b=Q7K1cTs0yrqjD62Nhuq+/e7kT1q7UQt9tEP9mW6SW6zpnrHnbCE+rsSnh8Jepw+j+s kHYAdyfO1lrbofAMkfUATFycwM6aXDUVXus6O+pnEv1c9L1TSilQiObgGPlSQYiv4Fvc TxsjHicINzMxcD6qH/9LStWlaOrS4CJwCzZ+ImK4/u48K9g/JSKB0hi6b3b6OuuAaiPh dbsp0o1pygNJqQLK83wUBP8WCacwbyIRg3n5JFgz1OG1sWIUV1Xuj0GyI0qwQHyQgw/T Bay8+DhyfpCBnxZoVP7oF4IRf78iDM7enWdIgLM7Cln1euJ6yHS5NqG8pkf0h+TI5ajL 8kMQ== 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=BhdqPDg0k6JRD5mCC0kje5kGlL6OogCRgqXtYFax08I=; b=hqwJEBbRzQXTY5T5od4r95QWLNVu1Cu9Puw5X9rSyc+Fq2qfoY2w3w4rN8QSqso+71 KotUWTIkZe8tYtNZuXWs+jr02sfxBuhnB4Zp8MI2toxJAO222ixdbKEI9fxw/M7y3IvE mtesNAVeaXw45K54NfrEtmhvuur4wUEqIIbmU5P+WUwFUMm/1ZHajutIFbchf+n0lBDH SIRwo+PhlTsCKTLmLATbDsDCosVmbj27jgP4mSL6hK7PYsHRLo4ljH4KdW43V+p5ClIG dIHA4yrZVz383h9DHQQXPOd+iDHLSEXvx3C8tAquwb9X2euwkQP8nmHq4isG2mm/uSBU dJsg== 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 r1si1709573plb.314.2017.11.02.01.10.49; Thu, 02 Nov 2017 01:10:50 -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 S932705AbdKBIKq (ORCPT + 26 others); Thu, 2 Nov 2017 04:10:46 -0400 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:55756 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755504AbdKBIKk (ORCPT ); Thu, 2 Nov 2017 04:10:40 -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 3E5C81529; Thu, 2 Nov 2017 01:10:40 -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 9E1E53F483; Thu, 2 Nov 2017 01:10:38 -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 v2 3/3] staging: ccree: remove dead code Date: Thu, 2 Nov 2017 08:10:23 +0000 Message-Id: <1509610224-14708-4-git-send-email-gilad@benyossef.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1509610224-14708-1-git-send-email-gilad@benyossef.com> References: <1509610224-14708-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 0b69103..ee85cbf 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; };