Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751505AbeACC47 (ORCPT + 1 other); Tue, 2 Jan 2018 21:56:59 -0500 Received: from shards.monkeyblade.net ([184.105.139.130]:55286 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751474AbeACC4w (ORCPT ); Tue, 2 Jan 2018 21:56:52 -0500 Date: Tue, 02 Jan 2018 21:56:49 -0500 (EST) Message-Id: <20180102.215649.684091832316614533.davem@davemloft.net> To: himanshujha199640@gmail.com Cc: michael.chan@broadcom.com, f.fainelli@gmail.com, bcm-kernel-feedback-list@broadcom.com, netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, mcgrof@kernel.org Subject: Re: [PATCH] ethernet/broadcom: Use zeroing memory allocator than allocator/memset From: David Miller In-Reply-To: <1514648697-7148-1-git-send-email-himanshujha199640@gmail.com> References: <1514648697-7148-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:51 -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:14:57 +0530 > Use dma_zalloc_coherent 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.