Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S936221AbdIYXHD (ORCPT ); Mon, 25 Sep 2017 19:07:03 -0400 Received: from userp1040.oracle.com ([156.151.31.81]:41867 "EHLO userp1040.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934948AbdIYXHC (ORCPT ); Mon, 25 Sep 2017 19:07:02 -0400 To: Thomas Meyer Cc: james.smart@broadcom.com, dick.kennedy@broadcom.com, jejb@linux.vnet.ibm.com, martin.petersen@oracle.com, linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 3/6] scsi: lpfc: Cocci spatch "pool_zalloc-simple" From: "Martin K. Petersen" Organization: Oracle Corporation References: <1505974468535-2047238743-0-diffsplit-thomas@m3y3r.de> <1505974468535-735692655-3-diffsplit-thomas@m3y3r.de> Date: Mon, 25 Sep 2017 19:06:39 -0400 In-Reply-To: <1505974468535-735692655-3-diffsplit-thomas@m3y3r.de> (Thomas Meyer's message of "Thu, 21 Sep 2017 08:15:26 +0200") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Source-IP: aserv0022.oracle.com [141.146.126.234] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 237 Lines: 10 Thomas, > Use *_pool_zalloc rather than *_pool_alloc followed by memset with 0. > Found by coccinelle spatch "api/alloc/pool_zalloc-simple.cocci" Applied to 4.15/scsi-queue. Thank you! -- Martin K. Petersen Oracle Linux Engineering