From patchwork Tue Dec 12 19:30:13 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Corentin Labbe X-Patchwork-Id: 10108211 X-Patchwork-Delegate: herbert@gondor.apana.org.au Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 8810B602B3 for ; Tue, 12 Dec 2017 19:30:33 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7990A2074F for ; Tue, 12 Dec 2017 19:30:33 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6CE8829695; Tue, 12 Dec 2017 19:30:33 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4CDEE29691 for ; Tue, 12 Dec 2017 19:30:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752386AbdLLTab (ORCPT ); Tue, 12 Dec 2017 14:30:31 -0500 Received: from mail-wm0-f66.google.com ([74.125.82.66]:42022 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752247AbdLLTaa (ORCPT ); Tue, 12 Dec 2017 14:30:30 -0500 Received: by mail-wm0-f66.google.com with SMTP id b199so834856wme.1 for ; Tue, 12 Dec 2017 11:30:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=CH1F+m0ISTZnGuT/I0xCO40l1Dd8h3heb23PyL8WrrA=; b=lZnT5tH/35o72ujkKk3HlH5x8yfFE/D7v+AAZ54kiRfDOLO7RaRSOad537WQ87DpqS dVZTjZzjGJG5Y3XqPwYZmmJ8Z379Gj4IyGYw1rZXnoZ+9hdz0vTyavr2F5J/bgIlEA+u p4/Fg58KIDu2x/oiXPs62L4HDHR6VqypvBnrzT1wfYtNgOdbljujoVmkMKwuk0gIyQrW Ix7EvxgZBkpk0nLmLANqW6W5VG2IcLso+nEtEKw80+CluVOgSJw+32YF0lOzerMibdOs hPmLfukopDmSEzHOt4yU3rcN8i7hxoDUSDLvJJOmGH0Qjs5qwh1xGD874d1neX8rZGZf WTgg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=CH1F+m0ISTZnGuT/I0xCO40l1Dd8h3heb23PyL8WrrA=; b=qMg+yPrygLrhoy9+V1verLLQRX7e9rsJx5v0iw5UW+EIvluw9a0ldhByrTBSAmsTUq P00vhiBD783a83XJluT42dOHUG+JgEa66/01z6QvKY0GJHMRl1XYcqnljvFSOFvH9kXm 4cgNiMZB/gYkJ/YajX4t5nTCWCkg4WVf1zYTTuW3KrY0xFepeXUnObPgdf2Hdxqqqt73 hFtb96xln/lOjzSVFAxNRClkrzBu+bqzZ/uIV111ZfbY6vA0oRPszpIt4okj4x5+yxUi fKR9qwBvVOJhIW9t43lQP3QRlTitDiFa46zydUhNcLs62RjuqrwPIwCFiMC3b5f7pyMa Lbwg== X-Gm-Message-State: AKGB3mJPOm1ebN+0HoHEjxmfwOWGliIwx8XJZqhZTWqls9VdfmCAbmSx AoVGDdu7IVxnyLHewRdfoo0oUg== X-Google-Smtp-Source: ACJfBovdW1hLzsB9XAChpFxX2aos8lincXLRmhzVPUeQrRTihah5P8SPtiF8OteT2WR1JpQu3uuixQ== X-Received: by 10.28.30.213 with SMTP id e204mr2556149wme.40.1513107029269; Tue, 12 Dec 2017 11:30:29 -0800 (PST) Received: from localhost.localdomain ([51.15.160.169]) by smtp.googlemail.com with ESMTPSA id j13sm21668424wre.55.2017.12.12.11.30.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 12 Dec 2017 11:30:28 -0800 (PST) From: Corentin Labbe To: herbert@gondor.apana.org.au, davem@davemloft.net Cc: linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org, Corentin Labbe Subject: [PATCH 1/2] crypto: echainiv - Remove unused alg/spawn variable Date: Tue, 12 Dec 2017 19:30:13 +0000 Message-Id: <1513107014-11975-1-git-send-email-clabbe@baylibre.com> X-Mailer: git-send-email 2.7.4 Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This patch remove two unused variable and some dead "code" using it. Fixes: 66008d4230f6 ("crypto: echainiv - Remove AEAD compatibility code") Signed-off-by: Corentin Labbe --- crypto/echainiv.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/crypto/echainiv.c b/crypto/echainiv.c index e3d889b122e0..45819e6015bf 100644 --- a/crypto/echainiv.c +++ b/crypto/echainiv.c @@ -118,8 +118,6 @@ static int echainiv_aead_create(struct crypto_template *tmpl, struct rtattr **tb) { struct aead_instance *inst; - struct crypto_aead_spawn *spawn; - struct aead_alg *alg; int err; inst = aead_geniv_alloc(tmpl, tb, 0, 0); @@ -127,9 +125,6 @@ static int echainiv_aead_create(struct crypto_template *tmpl, if (IS_ERR(inst)) return PTR_ERR(inst); - spawn = aead_instance_ctx(inst); - alg = crypto_spawn_aead_alg(spawn); - err = -EINVAL; if (inst->alg.ivsize & (sizeof(u64) - 1) || !inst->alg.ivsize) goto free_inst;