From: Robert P. J. Day Date: Tue, 19 Dec 2006 13:44:15 +0000 (+0100) Subject: [ALSA] sound: Change final two instances of kcalloc(1,...) to kzalloc() X-Git-Tag: v2.6.21-rc1~83^2~62^2~82 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=dc041e0b1fc918562aa3803cda166fee219a34d2;p=linux-2.6-omap-h63xx.git [ALSA] sound: Change final two instances of kcalloc(1,...) to kzalloc() Change the two remaining instances in the tree of kcalloc(1,...) to the corresponding kzalloc() call. Signed-off-by: Robert P. J. Day Signed-off-by: Takashi Iwai Signed-off-by: Jaroslav Kysela --- diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c index 18bfc3993b8..2be0ef9023b 100644 --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c @@ -6590,7 +6590,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; @@ -7710,7 +7710,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;