From patchwork Mon Nov 13 14:45:30 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: 118786 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp1878898qgn; Mon, 13 Nov 2017 06:46:29 -0800 (PST) X-Google-Smtp-Source: AGs4zMawXL/Zr4GwrNtsWoTDYbfQHdBmRtHyMk6sNQx2Pkgr2DcdgxioCh8HZG0KlPySqekl4srR X-Received: by 10.101.67.66 with SMTP id k2mr8740935pgq.20.1510584389817; Mon, 13 Nov 2017 06:46:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510584389; cv=none; d=google.com; s=arc-20160816; b=q6mOvGOGDwB9qKi/q+gftN5mcaSuOCPhVUhnJQp7B4QpGKAH6dn+atZzXEx7qBviWP 2+BROslU0QuyKU9xWXj6rsy9YYSzv+ruxe+0/YmSOnnbqGisy2yDjzoUcti5UdT9ec3o RiR2CkqYmH8uAIBgV6CuyX/u+gbXJcJYb3HK2VOD0Fff6gxG0qXL5JPfRy243P22xlGW p4n8Y8z8pPzUD7wOH42qTVjNhJJSxP4DFK2JRSjlEk59aZb2NTCkc7eQteUCTOzdxJTJ FI2fdTv7Y9u7g93ZExU1nBrdlNweRmh+9KZ34RQdJTn8X4LrVnzZD3bWznQdECcN5Otp fv0Q== 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=jRQr5W158zycxxPjn0bSg3hgykDsBY6d+Zjc8myrDWU=; b=Atfys1a+VxhrBSK7ABYP4kl8o8D0RnF9gQ662lZk59bIiyoNeYPbaiDHUJ6UJH36VV ExnZT8GwWpG9dqaT6xySNwtrqGLQ5/q5rCSbjWENPcuZvcZgA/q8r1AzlJ4YwzGCEAXA m3N69G0nS+F2TmBi/nIK8vF8n2j+LK4yHZveJLvTVsmYsnhNiC/BUOLGVGxTBsAFjGiq 08obFr4NknOa4Xe+dDrfVzNBZ0uuvwyrX28dW6pmbVrfcDlzPoXwHWf8ARJRsKdFyA+M yVKHsNd6NNm7wAw3f/uRulwIzgH+eyjGpJZnE3ymSzYroUK5xvuNZvtH+mxd8cnk9H39 zceA== 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 x66si15526931pfa.129.2017.11.13.06.46.29; Mon, 13 Nov 2017 06:46:29 -0800 (PST) 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 S1752987AbdKMOq1 (ORCPT + 27 others); Mon, 13 Nov 2017 09:46:27 -0500 Received: from foss.arm.com ([217.140.101.70]:47254 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752928AbdKMOqZ (ORCPT ); Mon, 13 Nov 2017 09:46:25 -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 53E0F1435; Mon, 13 Nov 2017 06:46:25 -0800 (PST) Received: from sugar.kfn.arm.com (unknown [10.45.48.133]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id B08AD3F318; Mon, 13 Nov 2017 06:46:23 -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 02/24] staging: ccree: alloc by instance not type Date: Mon, 13 Nov 2017 14:45:30 +0000 Message-Id: <1510584358-29473-3-git-send-email-gilad@benyossef.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1510584358-29473-1-git-send-email-gilad@benyossef.com> References: <1510584358-29473-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 Allocation by instance is preferred to allocation by type. Signed-off-by: Gilad Ben-Yossef --- drivers/staging/ccree/ssi_sram_mgr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.7.4 diff --git a/drivers/staging/ccree/ssi_sram_mgr.c b/drivers/staging/ccree/ssi_sram_mgr.c index 2263433..b71460c 100644 --- a/drivers/staging/ccree/ssi_sram_mgr.c +++ b/drivers/staging/ccree/ssi_sram_mgr.c @@ -51,7 +51,7 @@ void ssi_sram_mgr_fini(struct ssi_drvdata *drvdata) int ssi_sram_mgr_init(struct ssi_drvdata *drvdata) { /* Allocate "this" context */ - drvdata->sram_mgr_handle = kzalloc(sizeof(struct ssi_sram_mgr_ctx), + drvdata->sram_mgr_handle = kzalloc(sizeof(*drvdata->sram_mgr_handle), GFP_KERNEL); if (!drvdata->sram_mgr_handle)