From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1161117AbcFHD2j (ORCPT ); Tue, 7 Jun 2016 23:28:39 -0400 Received: from mga09.intel.com ([134.134.136.24]:52794 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752845AbcFHD2i (ORCPT ); Tue, 7 Jun 2016 23:28:38 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.26,437,1459839600"; d="scan'208";a="823840799" Date: Wed, 8 Jun 2016 09:05:15 +0530 From: Vinod Koul To: Amitoj Kaur Chawla Cc: dan.j.williams@intel.com, michal.simek@xilinx.com, soren.brinkmann@xilinx.com, linux-arm-kernel@lists.infradead.org, dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org, julia.lawall@lip6.fr Subject: Re: [PATCH] dmaengine: xilinx_vdma: Use dma_pool_zalloc Message-ID: <20160608033514.GR16910@localhost> References: <20160607191838.GA26841@amitoj-Inspiron-3542> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20160607191838.GA26841@amitoj-Inspiron-3542> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jun 08, 2016 at 12:48:38AM +0530, Amitoj Kaur Chawla wrote: > Dma_pool_zalloc combines dma_pool_alloc and memset 0. > > The Coccinelle semantic patch used to make this change is as follows: > @@ > type T; > T *d; > expression e; > statement S; > @@ > > d = > - dma_pool_alloc > + dma_pool_zalloc > (...); > if (!d) S > - memset(d, 0, sizeof(T)); Thanks for your patch, but I have already applied a similar patch fixing this. -- ~Vinod