From patchwork Tue Dec 12 14:52:51 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: 121526 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp4222097qgn; Tue, 12 Dec 2017 06:54:15 -0800 (PST) X-Google-Smtp-Source: ACJfBoveJHBn5hYNuQAmAE9iGMmvD3p4eHDcT0bgpL6S5+kZ+KC8sS9v8C4HFm2Txc0H9kVM4Xvk X-Received: by 10.84.217.86 with SMTP id e22mr2500635plj.283.1513090455039; Tue, 12 Dec 2017 06:54:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1513090455; cv=none; d=google.com; s=arc-20160816; b=pcutK9DGgBPcgo025nHrm0BJQ4sYl/zjXybe9l7j0kgRWd0sGgohrH+97lC1o4tUKc nF7AxH8P6EAfwC1EyZ6po7N9+HK5kUk7FPy0TxiJcBFanIUhjuO3ZQLj31vajIZ3VcMj r/DAS/n36OZNvgoPg7B2tfH9YXkCN3pMqllnsIv2d0iKjZRcNydQXwnTwIrygNgbVcob nKYmMWzR8gOQP7QCX13if8m2DPA1/MYSddlRjQb8tlf4JIncRsys1fcVmhdGoT3o7cWN T4res3v8+OrDORqVYTApTpsURbpVFdG24hGeP/5WCvx08ByaoxGrQziv4vz7LOtMG0PL U+YA== 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=S1b0Grvi/UMbAlo4i74++4Sboh4BNOf7hxH7GxANb2U=; b=jv86KwhunCEIQ0w6qBoAUvPkUdrKu0uXlyorRgOgVu8RRWursLNihdnq+khsylqZ+k U4xUwzOR4Rde32ZkPl1cLY1JjPnqQV+37rYhP4rISw850kFJQIJoV6ZuLFWRLlXz0SrQ 3wqwmTk2+8AIF3sJi1qAD/rpGC7CD98AAMNrHCTzgFUVGFMHw0IMxO3fNfB+9Yg/5o49 jk2apE328jEa9Vuj5YdPMcNywtSQFS+bP69auwxjYMxqAQg6vs8oAqdsLJ5APw2oaYdq GZs1qxL1copu7FbwkolmUiXk+SU/fBnWEfC/8CkU/2mDJqhVHnW7/ndKzwonZmBd+lqh B7MA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-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 j69si11578375pgd.355.2017.12.12.06.54.14; Tue, 12 Dec 2017 06:54:15 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-crypto-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-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752629AbdLLOyK (ORCPT + 1 other); Tue, 12 Dec 2017 09:54:10 -0500 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:45044 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752627AbdLLOyJ (ORCPT ); Tue, 12 Dec 2017 09:54:09 -0500 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 0E69B1529; Tue, 12 Dec 2017 06:54:09 -0800 (PST) Received: from sugar.kfn.arm.com (unknown [10.45.48.196]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id A69FF3F577; Tue, 12 Dec 2017 06:54:06 -0800 (PST) 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 05/24] staging: ccree: shorten parameter name Date: Tue, 12 Dec 2017 14:52:51 +0000 Message-Id: <1513090395-7938-6-git-send-email-gilad@benyossef.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1513090395-7938-1-git-send-email-gilad@benyossef.com> References: <1513090395-7938-1-git-send-email-gilad@benyossef.com> Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org Shorten parameter name for better code readability Signed-off-by: Gilad Ben-Yossef --- drivers/staging/ccree/ssi_aead.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) -- 2.7.4 diff --git a/drivers/staging/ccree/ssi_aead.c b/drivers/staging/ccree/ssi_aead.c index 75a578e..62d45e9 100644 --- a/drivers/staging/ccree/ssi_aead.c +++ b/drivers/staging/ccree/ssi_aead.c @@ -2687,7 +2687,7 @@ static struct ssi_alg_template aead_algs[] = { }; static struct ssi_crypto_alg *cc_create_aead_alg( - struct ssi_alg_template *template, + struct ssi_alg_template *tmpl, struct device *dev) { struct ssi_crypto_alg *t_alg; @@ -2697,26 +2697,26 @@ static struct ssi_crypto_alg *cc_create_aead_alg( if (!t_alg) return ERR_PTR(-ENOMEM); - alg = &template->template_aead; + alg = &tmpl->template_aead; snprintf(alg->base.cra_name, CRYPTO_MAX_ALG_NAME, "%s", - template->name); + tmpl->name); snprintf(alg->base.cra_driver_name, CRYPTO_MAX_ALG_NAME, "%s", - template->driver_name); + tmpl->driver_name); alg->base.cra_module = THIS_MODULE; alg->base.cra_priority = SSI_CRA_PRIO; alg->base.cra_ctxsize = sizeof(struct cc_aead_ctx); alg->base.cra_flags = CRYPTO_ALG_ASYNC | CRYPTO_ALG_KERN_DRIVER_ONLY | - template->type; + tmpl->type; alg->init = cc_aead_init; alg->exit = cc_aead_exit; t_alg->aead_alg = *alg; - t_alg->cipher_mode = template->cipher_mode; - t_alg->flow_mode = template->flow_mode; - t_alg->auth_mode = template->auth_mode; + t_alg->cipher_mode = tmpl->cipher_mode; + t_alg->flow_mode = tmpl->flow_mode; + t_alg->auth_mode = tmpl->auth_mode; return t_alg; }