From patchwork Sun Jul 30 16:15:02 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: 108954 Delivered-To: patch@linaro.org Received: by 10.182.45.195 with SMTP id p3csp2747358obm; Sun, 30 Jul 2017 09:15:20 -0700 (PDT) X-Received: by 10.99.122.10 with SMTP id v10mr13288414pgc.215.1501431320366; Sun, 30 Jul 2017 09:15:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1501431320; cv=none; d=google.com; s=arc-20160816; b=PJz6gOF9BuSkjONhMBjOXP8vXu/qAg+OOC+Kv7lfn+t/Awoxih83bSyqQbnQoPYNgL 9FMJojkYznSIppfDZS6Y4kF3HmvJKCvbnt5olOp2R50VPbzKsGC3ATtgm8Mye9BKQw2s 2EQdEagt7rfw7wLnhIfS42anx1vEUvdJLvdz5HLGiXQjFWMvTVf677Nqpt7b/74L7tVl Qyb0nL38iKnbDYck8GzAV5iJzPPERX/dH1T7coBDRKRjhNG/QHQXAioRb2H5cibN+ovw plrFfCMFD8GAcWjR/3XTYgzj/kfFDp/yZO5f9dtBaXjv3ZVPk5tvsuBpwUqqF93HANju f/rA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=260uvI3RbpYnGSaHVM1BFASEkWeqXl5GgG1i3+wyL1c=; b=hgr6Rq9nkSG+yKo36P+kne9f3cWmC0fCIyGu4OYSIB2Qaagf8VWkCMcJyOEYu1nVk1 vbyB0aQ0/RETFFrSN592NBOCvJa4EauhUJLC8GdE4h1DsjUWyIfNT86HYiX1PbI0Lrrt EE9LOo566aFRNfnMii7alW9n8rEJFJ6+AdQz/1G5k7MEkDaX9e9BL2DALKC4PhLEtn+0 GuOJkWO0Eh8TrPGjubmmZr+IGnf/Jr434M655PHBspZrJy4dL+h6YQN2oVUNpKel1nzm yXLgYEYSXpfpfNx0X0gM9uhTlZaxxQ+XpgqmXFBnmkwPJ9vyy0Zg7Y0sBOCXUMycSGgG XnJA== 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 o187si14916455pfb.37.2017.07.30.09.15.20; Sun, 30 Jul 2017 09:15:20 -0700 (PDT) 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 S1754162AbdG3QPP (ORCPT + 1 other); Sun, 30 Jul 2017 12:15:15 -0400 Received: from foss.arm.com ([217.140.101.70]:42970 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754159AbdG3QPO (ORCPT ); Sun, 30 Jul 2017 12:15:14 -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 332DF13D5; Sun, 30 Jul 2017 09:15:14 -0700 (PDT) Received: from localhost.localdomain (usa-sjc-mx-foss1.foss.arm.com [217.140.101.70]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 6606E3F540; Sun, 30 Jul 2017 09:15:12 -0700 (PDT) From: Gilad Ben-Yossef To: Greg Kroah-Hartman , linux-crypto@vger.kernel.org, driverdev-devel@linuxdriverproject.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Cc: Ofir Drang Subject: [PATCH v2 0/6] ccree style fixes and simplification Date: Sun, 30 Jul 2017 19:15:02 +0300 Message-Id: <1501431309-27705-1-git-send-email-gilad@benyossef.com> X-Mailer: git-send-email 2.1.4 Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org Various style code fixes and simplification from myself and Suniel. Changes from v2: - Rebase on top of current staging-next. - Added resource release on error simplification patch suggested by Dan C. as part of the review. I made sure the code applies on top both current staging-next (commit 0d0d4d21a09981e65b2bd386c999e8c0ecc6444e) as well as staging-testing and of course compiles and runs. If this doesn't apply cleanly I'm going to start suspecting Gremlins at out IT dept. Gilad Ben-Yossef (3): staging: ccree: fix split strings staging: ccree: kmalloc by sizeof var not type staging: ccree: simplify resource release on error Suniel Mahesh (3): staging: ccree: Replace kzalloc with devm_kzalloc staging: ccree: Convert to devm_ioremap_resource for map, unmap staging: ccree: Use platform_get_irq and devm_request_irq drivers/staging/ccree/ssi_aead.c | 16 ++- drivers/staging/ccree/ssi_buffer_mgr.c | 86 ++++++-------- drivers/staging/ccree/ssi_cipher.c | 34 +++--- drivers/staging/ccree/ssi_driver.c | 192 +++++++++++++------------------- drivers/staging/ccree/ssi_driver.h | 4 +- drivers/staging/ccree/ssi_hash.c | 50 ++++----- drivers/staging/ccree/ssi_ivgen.c | 10 +- drivers/staging/ccree/ssi_request_mgr.c | 15 +-- 8 files changed, 170 insertions(+), 237 deletions(-) -- 2.1.4