From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kevin Hilman Date: Fri, 14 May 2010 15:16:04 +0000 Subject: Re: [PATCH 4/20] arch/arm/mach-davinci: Use kzalloc Message-Id: <87d3wyqzt7.fsf@deeprootsystems.com> List-Id: References: In-Reply-To: (Julia Lawall's message of "Thu\, 13 May 2010 21\:59\:32 +0200 \(CEST\)") MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-arm-kernel@lists.infradead.org Julia Lawall writes: > From: Julia Lawall > > Use kzalloc rather than the combination of kmalloc and memset. > > The semantic patch that makes this change is as follows: > (http://coccinelle.lip6.fr/) > > // > @@ > expression x,size,flags; > statement S; > @@ > > -x = kmalloc(size,flags); > +x = kzalloc(size,flags); > if (x = NULL) S > -memset(x, 0, size); > // > > Signed-off-by: Julia Lawall Acked-by: Kevin Hilman From mboxrd@z Thu Jan 1 00:00:00 1970 From: khilman@deeprootsystems.com (Kevin Hilman) Date: Fri, 14 May 2010 08:16:04 -0700 Subject: [PATCH 4/20] arch/arm/mach-davinci: Use kzalloc In-Reply-To: (Julia Lawall's message of "Thu\, 13 May 2010 21\:59\:32 +0200 \(CEST\)") References: Message-ID: <87d3wyqzt7.fsf@deeprootsystems.com> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org Julia Lawall writes: > From: Julia Lawall > > Use kzalloc rather than the combination of kmalloc and memset. > > The semantic patch that makes this change is as follows: > (http://coccinelle.lip6.fr/) > > // > @@ > expression x,size,flags; > statement S; > @@ > > -x = kmalloc(size,flags); > +x = kzalloc(size,flags); > if (x == NULL) S > -memset(x, 0, size); > // > > Signed-off-by: Julia Lawall Acked-by: Kevin Hilman From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752997Ab0ENPQL (ORCPT ); Fri, 14 May 2010 11:16:11 -0400 Received: from mail-px0-f174.google.com ([209.85.212.174]:57791 "EHLO mail-px0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751417Ab0ENPQJ (ORCPT ); Fri, 14 May 2010 11:16:09 -0400 To: Julia Lawall Cc: Kevin Hilman , Russell King , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org Subject: Re: [PATCH 4/20] arch/arm/mach-davinci: Use kzalloc References: From: Kevin Hilman Organization: Deep Root Systems, LLC Date: Fri, 14 May 2010 08:16:04 -0700 In-Reply-To: (Julia Lawall's message of "Thu\, 13 May 2010 21\:59\:32 +0200 \(CEST\)") Message-ID: <87d3wyqzt7.fsf@deeprootsystems.com> User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Julia Lawall writes: > From: Julia Lawall > > Use kzalloc rather than the combination of kmalloc and memset. > > The semantic patch that makes this change is as follows: > (http://coccinelle.lip6.fr/) > > // > @@ > expression x,size,flags; > statement S; > @@ > > -x = kmalloc(size,flags); > +x = kzalloc(size,flags); > if (x == NULL) S > -memset(x, 0, size); > // > > Signed-off-by: Julia Lawall Acked-by: Kevin Hilman