Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965407AbdIYXII (ORCPT ); Mon, 25 Sep 2017 19:08:08 -0400 Received: from userp1040.oracle.com ([156.151.31.81]:42238 "EHLO userp1040.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935357AbdIYXIG (ORCPT ); Mon, 25 Sep 2017 19:08:06 -0400 To: Thomas Meyer Cc: qla2xxx-upstream@qlogic.com, jejb@linux.vnet.ibm.com, martin.petersen@oracle.com, linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 5/6] scsi: qla2xxx: Cocci spatch "pool_zalloc-simple" From: "Martin K. Petersen" Organization: Oracle Corporation References: <1505974468535-2047238743-0-diffsplit-thomas@m3y3r.de> <1505974468535-1220930483-5-diffsplit-thomas@m3y3r.de> Date: Mon, 25 Sep 2017 19:07:44 -0400 In-Reply-To: <1505974468535-1220930483-5-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: aserv0021.oracle.com [141.146.126.233] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 234 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. Thanks! -- Martin K. Petersen Oracle Linux Engineering