mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] sound: Change final two instances of kcalloc(1,...) to kzalloc().
@ 2006-12-19  9:08 Robert P. J. Day
  2006-12-19 13:47 ` Takashi Iwai
  0 siblings, 1 reply; 2+ messages in thread
From: Robert P. J. Day @ 2006-12-19  9:08 UTC (permalink / raw)
  To: Linux kernel mailing list; +Cc: Andrew Morton


  Change the two remaining instances in the tree of kcalloc(1,...) to
the corresponding kzalloc() call.

Signed-off-by: Robert P. J. Day <rpjday@mindspring.com>

---

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;


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] sound: Change final two instances of kcalloc(1,...) to kzalloc().
  2006-12-19  9:08 [PATCH] sound: Change final two instances of kcalloc(1,...) to kzalloc() Robert P. J. Day
@ 2006-12-19 13:47 ` Takashi Iwai
  0 siblings, 0 replies; 2+ messages in thread
From: Takashi Iwai @ 2006-12-19 13:47 UTC (permalink / raw)
  To: Robert P. J. Day; +Cc: Linux kernel mailing list, Andrew Morton

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 <rpjday@mindspring.com>

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/
> 

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-12-19 13:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-12-19  9:08 [PATCH] sound: Change final two instances of kcalloc(1,...) to kzalloc() Robert P. J. Day
2006-12-19 13:47 ` Takashi Iwai

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®