Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2b223a91 authored by Markus Elfring's avatar Markus Elfring Committed by Takashi Iwai
Browse files

ALSA: opl3: Delete an error message for a failed memory allocation in snd_opl3_new()



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

This issue was detected by using the Coccinelle software.

Signed-off-by: default avatarMarkus Elfring <elfring@users.sourceforge.net>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent f197acd2
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -355,10 +355,8 @@ int snd_opl3_new(struct snd_card *card,

	*ropl3 = NULL;
	opl3 = kzalloc(sizeof(*opl3), GFP_KERNEL);
	if (opl3 == NULL) {
		snd_printk(KERN_ERR "opl3: cannot allocate\n");
	if (!opl3)
		return -ENOMEM;
	}

	opl3->card = card;
	opl3->hardware = hardware;