From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_GIT autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E18CDC4BA0D for ; Wed, 26 Feb 2020 05:01:01 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id AE58524672 for ; Wed, 26 Feb 2020 05:01:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1582693261; bh=Henn+sHuWVjQ9GkI2AA64J82QXOt7xA9/yA+pFP61VM=; h=From:To:Subject:Date:List-ID:From; b=yIxkYNyStZDkKpPTGdQfxk4IdKMWumGAmElcUDXMoGEk1y891ct3c7YjJHNaFSInI 6hy8u+oZmgTxBt9usy3WpM0OcPE34l7FlKg4KyY/6q/TjBurat1S/no8AgdjGx4hpd l7O9os0GlFrNOZrIu3hnflDU17M4wuCMdD0yEMmc= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726046AbgBZFBA (ORCPT ); Wed, 26 Feb 2020 00:01:00 -0500 Received: from mail.kernel.org ([198.145.29.99]:50550 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725876AbgBZFBA (ORCPT ); Wed, 26 Feb 2020 00:01:00 -0500 Received: from sol.hsd1.ca.comcast.net (c-107-3-166-239.hsd1.ca.comcast.net [107.3.166.239]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id B53B720658 for ; Wed, 26 Feb 2020 05:00:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1582693259; bh=Henn+sHuWVjQ9GkI2AA64J82QXOt7xA9/yA+pFP61VM=; h=From:To:Subject:Date:From; b=RBFf4RzKU0SVW/qPPlTzeT9CFEvP18N/FwOJIE3KckxZrgqau18Q4MxBkU6fa1tba N/cv1h2qlYVTEdJ1sAXZmXbplpZuflHq6AjgEGZersVbTatyUY/sw7f7cGU8kgZ1gZ 40aTWOmp8E/tWUe/e/ssVVekzF3GpY3NYYF9FZ8M= From: Eric Biggers To: linux-crypto@vger.kernel.org Subject: [PATCH 00/12] crypto: more template instantiation cleanups Date: Tue, 25 Feb 2020 20:59:12 -0800 Message-Id: <20200226045924.97053-1-ebiggers@kernel.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org This series simplifies error handling in the remaining crypto templates, taking advantage of the changes I made last release that made crypto_grab_*() accept ERR_PTR() names and crypto_drop_*() accept spawns that haven't been grabbed yet: https://lore.kernel.org/r/20200103035908.12048-1-ebiggers@kernel.org Many templates were already converted to the new style by that series. This series just handles the remainder. This series is an internal cleanup only; there are no changes for users of the crypto API. Net change is 124 lines of code removed. Eric Biggers (12): crypto: authencesn - fix weird comma-terminated line crypto: ccm - simplify error handling in crypto_rfc4309_create() crypto: cryptd - simplify error handling in cryptd_create_*() crypto: ctr - simplify error handling in crypto_rfc3686_create() crypto: cts - simplify error handling in crypto_cts_create() crypto: gcm - simplify error handling in crypto_rfc4106_create() crypto: gcm - simplify error handling in crypto_rfc4543_create() crypto: geniv - simply error handling in aead_geniv_alloc() crypto: lrw - simplify error handling in create() crypto: pcrypt - simplify error handling in pcrypt_create_aead() crypto: rsa-pkcs1pad - simplify error handling in pkcs1pad_create() crypto: xts - simplify error handling in ->create() crypto/authencesn.c | 2 +- crypto/ccm.c | 29 ++++++------------- crypto/cryptd.c | 37 ++++++++---------------- crypto/ctr.c | 29 ++++++------------- crypto/cts.c | 27 ++++++------------ crypto/gcm.c | 66 ++++++++++++++----------------------------- crypto/geniv.c | 17 ++++------- crypto/lrw.c | 28 ++++++++---------- crypto/pcrypt.c | 33 ++++++---------------- crypto/rsa-pkcs1pad.c | 59 +++++++++++++------------------------- crypto/xts.c | 28 ++++++++---------- kernel/padata.c | 7 +++-- 12 files changed, 119 insertions(+), 243 deletions(-) -- 2.25.1