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 <[email protected]>
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 [email protected]
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
>
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[Index of Archives]
[Kernel Newbies]
[Netfilter]
[Bugtraq]
[Photo]
[Stuff]
[Gimp]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Video 4 Linux]
[Linux for the blind]
[Linux Resources]