[ALSA] Add error messages
Add error messages in the critial error path to be more verbose. Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
committed by
Jaroslav Kysela
parent
00a4e3d9f8
commit
73e77ba023
@@ -349,8 +349,10 @@ int snd_opl3_new(struct snd_card *card,
|
||||
|
||||
*ropl3 = NULL;
|
||||
opl3 = kzalloc(sizeof(*opl3), GFP_KERNEL);
|
||||
if (opl3 == NULL)
|
||||
if (opl3 == NULL) {
|
||||
snd_printk(KERN_ERR "opl3: cannot allocate\n");
|
||||
return -ENOMEM;
|
||||
}
|
||||
|
||||
opl3->card = card;
|
||||
opl3->hardware = hardware;
|
||||
|
Reference in New Issue
Block a user