提交 f197acd2 编写于 作者: M Markus Elfring 提交者: Takashi Iwai

ALSA: ca0106: Delete an error message for a failed memory allocation in...

ALSA: ca0106: Delete an error message for a failed memory allocation in snd_ca0106_pcm_open_capture_channel()

Omit an extra message for a memory allocation failure in this function.

This issue was detected by using the Coccinelle software.
Signed-off-by: NMarkus Elfring <elfring@users.sourceforge.net>
Signed-off-by: NTakashi Iwai <tiwai@suse.de>
上级 a357f3d1
...@@ -660,11 +660,9 @@ static int snd_ca0106_pcm_open_capture_channel(struct snd_pcm_substream *substre ...@@ -660,11 +660,9 @@ static int snd_ca0106_pcm_open_capture_channel(struct snd_pcm_substream *substre
int err; int err;
epcm = kzalloc(sizeof(*epcm), GFP_KERNEL); epcm = kzalloc(sizeof(*epcm), GFP_KERNEL);
if (epcm == NULL) { if (!epcm)
dev_err(chip->card->dev,
"open_capture_channel: failed epcm alloc\n");
return -ENOMEM; return -ENOMEM;
}
epcm->emu = chip; epcm->emu = chip;
epcm->substream = substream; epcm->substream = substream;
epcm->channel_id=channel_id; epcm->channel_id=channel_id;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册