Skip to content

Commit

Permalink
[ALSA] sound: Change final two instances of kcalloc(1,...) to kzalloc()
Browse files Browse the repository at this point in the history
  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>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
  • Loading branch information
Robert P. J. Day authored and Jaroslav Kysela committed Feb 9, 2007
1 parent e4c3bf0 commit dc041e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sound/pci/hda/patch_realtek.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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;

Expand Down

0 comments on commit dc041e0

Please sign in to comment.