Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751471AbeACC4J (ORCPT + 1 other); Tue, 2 Jan 2018 21:56:09 -0500 Received: from shards.monkeyblade.net ([184.105.139.130]:55268 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751069AbeACC4G (ORCPT ); Tue, 2 Jan 2018 21:56:06 -0500 Date: Tue, 02 Jan 2018 21:56:04 -0500 (EST) Message-Id: <20180102.215604.696488231578970359.davem@davemloft.net> To: himanshujha199640@gmail.com Cc: Ariel.Elior@cavium.com, everest-linux-l2@cavium.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, mcgrof@kernel.org Subject: Re: [PATCH] qed: Use zeroing memory allocator than allocator/memset From: David Miller In-Reply-To: <1514648224-6820-1-git-send-email-himanshujha199640@gmail.com> References: <1514648224-6820-1-git-send-email-himanshujha199640@gmail.com> X-Mailer: Mew version 6.7 on Emacs 25.3 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Tue, 02 Jan 2018 18:56:06 -0800 (PST) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: From: Himanshu Jha Date: Sat, 30 Dec 2017 21:07:04 +0530 > Use dma_zalloc_coherent and vzalloc for allocating zeroed > memory and remove unnecessary memset function. > > Done using Coccinelle. > Generated-by: scripts/coccinelle/api/alloc/kzalloc-simple.cocci > 0-day tested with no failures. > > Suggested-by: Luis R. Rodriguez > Signed-off-by: Himanshu Jha Applied.