From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756647Ab1KUUHg (ORCPT ); Mon, 21 Nov 2011 15:07:36 -0500 Received: from shards.monkeyblade.net ([198.137.202.13]:40399 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755958Ab1KUUHe (ORCPT ); Mon, 21 Nov 2011 15:07:34 -0500 Date: Mon, 21 Nov 2011 15:07:10 -0500 (EST) Message-Id: <20111121.150710.927474462388773194.davem@davemloft.net> To: thomas@m3y3r.de Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] net: Use kzalloc rather than kmalloc followed by memset with 0 From: David Miller In-Reply-To: <1321569820.1624.263.camel@localhost.localdomain> References: <1321569820.1624.263.camel@localhost.localdomain> X-Mailer: Mew version 6.4 on Emacs 23.2 / 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.2.6 (shards.monkeyblade.net [198.137.202.13]); Mon, 21 Nov 2011 12:07:12 -0800 (PST) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Thomas Meyer Date: Thu, 17 Nov 2011 23:43:40 +0100 > This considers some simple cases that are common and easy to validate > Note in particular that there are no ...s in the rule, so all of the > matched code has to be contiguous > > The semantic patch that makes this change is available > in scripts/coccinelle/api/alloc/kzalloc-simple.cocci. > > Signed-off-by: Thomas Meyer Applied, with subject prefix fixed to be "ksz884x: "