diff options
Diffstat (limited to 'sound/core/pcm.c')
-rw-r--r-- | sound/core/pcm.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sound/core/pcm.c b/sound/core/pcm.c index 9f4c9209b271..1be470e942ef 100644 --- a/sound/core/pcm.c +++ b/sound/core/pcm.c | |||
@@ -597,7 +597,7 @@ int snd_pcm_new_stream(snd_pcm_t *pcm, int stream, int substream_count) | |||
597 | } | 597 | } |
598 | prev = NULL; | 598 | prev = NULL; |
599 | for (idx = 0, prev = NULL; idx < substream_count; idx++) { | 599 | for (idx = 0, prev = NULL; idx < substream_count; idx++) { |
600 | substream = kcalloc(1, sizeof(*substream), GFP_KERNEL); | 600 | substream = kzalloc(sizeof(*substream), GFP_KERNEL); |
601 | if (substream == NULL) | 601 | if (substream == NULL) |
602 | return -ENOMEM; | 602 | return -ENOMEM; |
603 | substream->pcm = pcm; | 603 | substream->pcm = pcm; |
@@ -657,7 +657,7 @@ int snd_pcm_new(snd_card_t * card, char *id, int device, | |||
657 | snd_assert(rpcm != NULL, return -EINVAL); | 657 | snd_assert(rpcm != NULL, return -EINVAL); |
658 | *rpcm = NULL; | 658 | *rpcm = NULL; |
659 | snd_assert(card != NULL, return -ENXIO); | 659 | snd_assert(card != NULL, return -ENXIO); |
660 | pcm = kcalloc(1, sizeof(*pcm), GFP_KERNEL); | 660 | pcm = kzalloc(sizeof(*pcm), GFP_KERNEL); |
661 | if (pcm == NULL) | 661 | if (pcm == NULL) |
662 | return -ENOMEM; | 662 | return -ENOMEM; |
663 | pcm->card = card; | 663 | pcm->card = card; |
@@ -795,7 +795,7 @@ int snd_pcm_open_substream(snd_pcm_t *pcm, int stream, | |||
795 | if (substream == NULL) | 795 | if (substream == NULL) |
796 | return -EAGAIN; | 796 | return -EAGAIN; |
797 | 797 | ||
798 | runtime = kcalloc(1, sizeof(*runtime), GFP_KERNEL); | 798 | runtime = kzalloc(sizeof(*runtime), GFP_KERNEL); |
799 | if (runtime == NULL) | 799 | if (runtime == NULL) |
800 | return -ENOMEM; | 800 | return -ENOMEM; |
801 | 801 | ||