Skip to contentSkip to conversation

ALSA: vx: remove 'out of memory' message

PATCH New Mihai Burduselu 1 participant 1 message Feb 25, 2017 Sound

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ALSA: vx: remove 'out of memory' message

Reported by checkpatch.pl

---
 sound/drivers/vx/vx_core.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
sound/drivers/vx/vx_core.c +1 -3
index 289f041706cd..f684fffd1397 100644
@@ -795,10 +795,8 @@ struct vx_core *snd_vx_create(struct snd_card *card, struct snd_vx_hardware *hw,
 		return NULL;
 
 	chip = kzalloc(sizeof(*chip) + extra_size, GFP_KERNEL);
-	if (! chip) {
-		snd_printk(KERN_ERR "vx_core: no memory\n");
+	if (! chip)
 		return NULL;
-	}
 	mutex_init(&chip->lock);
 	chip->irq = -1;
 	chip->hw = hw;
Signature · 1 line
2.11.0