ALSA: Use kzalloc for allocating only one thing
Use kzalloc rather than kcalloc(1,...) The semantic patch that makes this change is as follows: (http://coccinelle.lip6.fr/) // <smpl> @@ @@ - kcalloc(1, + kzalloc( ...) // </smpl> Signed-off-by: Julia Lawall <julia@diku.dk> Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:

committed by
Takashi Iwai

parent
d6a89fefa5
commit
ef86f581f7
@@ -12857,7 +12857,7 @@ static int patch_alc268(struct hda_codec *codec)
|
||||
int board_config;
|
||||
int i, has_beep, err;
|
||||
|
||||
spec = kcalloc(1, sizeof(*spec), GFP_KERNEL);
|
||||
spec = kzalloc(sizeof(*spec), GFP_KERNEL);
|
||||
if (spec == NULL)
|
||||
return -ENOMEM;
|
||||
|
||||
|
Reference in New Issue
Block a user