From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751704AbWLSNrc (ORCPT ); Tue, 19 Dec 2006 08:47:32 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751787AbWLSNrc (ORCPT ); Tue, 19 Dec 2006 08:47:32 -0500 Received: from ns2.suse.de ([195.135.220.15]:37845 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751704AbWLSNrb (ORCPT ); Tue, 19 Dec 2006 08:47:31 -0500 Date: Tue, 19 Dec 2006 14:47:25 +0100 Message-ID: From: Takashi Iwai To: "Robert P. J. Day" Cc: Linux kernel mailing list , Andrew Morton Subject: Re: [PATCH] sound: Change final two instances of kcalloc(1,...) to kzalloc(). In-Reply-To: References: User-Agent: Wanderlust/2.12.0 (Your Wildest Dreams) SEMI/1.14.6 (Maruoka) FLIM/1.14.7 (=?ISO-8859-4?Q?Sanj=F2?=) APEL/10.6 MULE XEmacs/21.5 (beta27) (fiddleheads) (+CVS-20060704) (i386-suse-linux) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org At Tue, 19 Dec 2006 04:08:29 -0500 (EST), Robert P. J. Day wrote: > > > Change the two remaining instances in the tree of kcalloc(1,...) to > the corresponding kzalloc() call. > > Signed-off-by: Robert P. J. Day Applied to ALSA tree. Thanks. Takashi > > --- > > diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c > index fb96144..5ebdd8a 100644 > --- a/sound/pci/hda/patch_realtek.c > +++ b/sound/pci/hda/patch_realtek.c > @@ -5936,7 +5936,7 @@ static int patch_alc262(struct hda_codec *codec) > int board_config; > int err; > > - spec = kcalloc(1, sizeof(*spec), GFP_KERNEL); > + spec = kzalloc(sizeof(*spec), GFP_KERNEL); > if (spec == NULL) > return -ENOMEM; > > @@ -6795,7 +6795,7 @@ static int patch_alc861(struct hda_codec *codec) > int board_config; > int err; > > - spec = kcalloc(1, sizeof(*spec), GFP_KERNEL); > + spec = kzalloc(sizeof(*spec), GFP_KERNEL); > if (spec == NULL) > return -ENOMEM; > > - > 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/ >