Commit 4d0272ca authored by Markus Elfring's avatar Markus Elfring Committed by Takashi Iwai
Browse files

ALSA: gus: Delete an error message for a failed memory allocation in snd_gf1_dma_transfer_block()



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 cdc4398b
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -201,10 +201,9 @@ int snd_gf1_dma_transfer_block(struct snd_gus_card * gus,
	struct snd_gf1_dma_block *block;

	block = kmalloc(sizeof(*block), atomic ? GFP_ATOMIC : GFP_KERNEL);
	if (block == NULL) {
		snd_printk(KERN_ERR "gf1: DMA transfer failure; not enough memory\n");
	if (!block)
		return -ENOMEM;
	}

	*block = *__block;
	block->next = NULL;