diff options
author | Julia Lawall <julia@diku.dk> | 2009-12-19 07:18:03 (GMT) |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2009-12-19 08:40:26 (GMT) |
commit | ef86f581f7e8b29cb58d7f4e892e1a91b3805124 (patch) | |
tree | ef8e68bc136b24f6fd0bfee26b45f653123d38d9 /sound/pci/hda | |
parent | d6a89fefa50feda5516cd5210ad0008a44632b52 (diff) | |
download | linux-ef86f581f7e8b29cb58d7f4e892e1a91b3805124.tar.xz |
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>
Diffstat (limited to 'sound/pci/hda')
-rw-r--r-- | sound/pci/hda/patch_realtek.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c index aeed4cc..20c1828 100644 --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c @@ -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; |