ALSA: gus: Delete an error message for a failed memory allocation in snd_gf1_dma_tran...
[sfrench/cifs-2.6.git] / sound / isa / gus / gus_dma.c
index 36c27c832360180e9b31edb60d3aebc85eaf4bfe..7f95f452f1064c850adda3d5e5d210a6b7750a8a 100644 (file)
@@ -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;