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

ALSA: pcxhr: Delete an error message for a failed memory allocation in pcxhr_create()

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>
上级 dee49895
...@@ -1215,10 +1215,8 @@ static int pcxhr_create(struct pcxhr_mgr *mgr, ...@@ -1215,10 +1215,8 @@ static int pcxhr_create(struct pcxhr_mgr *mgr,
}; };
chip = kzalloc(sizeof(*chip), GFP_KERNEL); chip = kzalloc(sizeof(*chip), GFP_KERNEL);
if (! chip) { if (!chip)
dev_err(card->dev, "cannot allocate chip\n");
return -ENOMEM; return -ENOMEM;
}
chip->card = card; chip->card = card;
chip->chip_idx = idx; chip->chip_idx = idx;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册