diff options
author | Takashi Iwai <tiwai@suse.de> | 2005-09-09 08:20:23 -0400 |
---|---|---|
committer | Jaroslav Kysela <perex@suse.cz> | 2005-09-12 04:47:59 -0400 |
commit | ca2c0966562cfbf9273167a5b60e8fddc24078d6 (patch) | |
tree | 0292047f4cd0a24e1b24914081ebe890bb535877 /sound/core/hwdep.c | |
parent | 8648811f1db85eeacb821591ef11a2c229c29aa0 (diff) |
[ALSA] Replace with kzalloc() - core stuff
Control Midlevel,ALSA Core,HWDEP Midlevel,PCM Midlevel,RawMidi Midlevel
Timer Midlevel,ALSA<-OSS emulation
Replace kcalloc(1,..) with kzalloc().
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/core/hwdep.c')
-rw-r--r-- | sound/core/hwdep.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/core/hwdep.c b/sound/core/hwdep.c index 997dd41c584e..9383f1294fb5 100644 --- a/sound/core/hwdep.c +++ b/sound/core/hwdep.c | |||
@@ -359,7 +359,7 @@ int snd_hwdep_new(snd_card_t * card, char *id, int device, snd_hwdep_t ** rhwdep | |||
359 | snd_assert(rhwdep != NULL, return -EINVAL); | 359 | snd_assert(rhwdep != NULL, return -EINVAL); |
360 | *rhwdep = NULL; | 360 | *rhwdep = NULL; |
361 | snd_assert(card != NULL, return -ENXIO); | 361 | snd_assert(card != NULL, return -ENXIO); |
362 | hwdep = kcalloc(1, sizeof(*hwdep), GFP_KERNEL); | 362 | hwdep = kzalloc(sizeof(*hwdep), GFP_KERNEL); |
363 | if (hwdep == NULL) | 363 | if (hwdep == NULL) |
364 | return -ENOMEM; | 364 | return -ENOMEM; |
365 | hwdep->card = card; | 365 | hwdep->card = card; |