提交 dc041e0b 编写于 作者: R Robert P. J. Day 提交者: Jaroslav Kysela

[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: NRobert P. J. Day <rpjday@mindspring.com>
Signed-off-by: NTakashi Iwai <tiwai@suse.de>
Signed-off-by: NJaroslav Kysela <perex@suse.cz>
上级 e4c3bf0f
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册