Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750878AbVJAWZd (ORCPT ); Sat, 1 Oct 2005 18:25:33 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1750877AbVJAWZd (ORCPT ); Sat, 1 Oct 2005 18:25:33 -0400 Received: from qproxy.gmail.com ([72.14.204.196]:46702 "EHLO qproxy.gmail.com") by vger.kernel.org with ESMTP id S1750876AbVJAWZc (ORCPT ); Sat, 1 Oct 2005 18:25:32 -0400 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:date:from:to:cc:subject:message-id:references:mime-version:content-type:content-disposition:in-reply-to:user-agent; b=C0bO618PK9nnmRxsNmaxdVpP8d/R71+0bNxQc6pfO4VyQjlvQLAlrU7woNfeaTbUVvC3KVKLqVMu6vdgFI7S9KzJ5fY01BeEgsQMElPYV96/Zn9aNdGxAGDZx2YAejdVon/gHdk73DT4M8tML1uQUpwM0LHSHAisiUyev8w3XFI= Date: Sun, 2 Oct 2005 02:36:40 +0400 From: Alexey Dobriyan To: Grant Coady Cc: Jean Delvare , Deepak Saxena , Linus Torvalds , Andrew Morton , LKML Subject: Re: [PATCH] [HWMON] kmalloc + memset -> kzalloc conversion Message-ID: <20051001223640.GA18641@mipter.zuzino.mipt.ru> References: <20051001072630.GJ25424@plexity.net> <20051001224604.484ef912.khali@linux-fr.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.8i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 686 Lines: 17 On Sun, Oct 02, 2005 at 07:45:36AM +1000, Grant Coady wrote: > On Sat, 1 Oct 2005 22:46:04 +0200, Jean Delvare wrote: > >> - if (!(data = kmalloc(sizeof(struct adm1021_data), GFP_KERNEL))) { > >> + if (!(data = kzalloc(sizeof(struct adm1021_data), GFP_KERNEL))) { > > if (!(data = kzalloc(sizeof(*data), GFP_KERNEL))) { > > instead? One thing at a time. And leave sizeof(*p) vs sizeof(struct foo) to maintainer, OK? - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/