summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMihai Burduselu <michelcatalin@gmail.com>2017-02-26 01:30:38 +0200
committerTakashi Iwai <tiwai@suse.de>2017-02-28 07:54:33 +0100
commita65895e0ee3a9e4f7f38e0d0fa4054b30b811035 (patch)
tree91da844623176310ce8c6486ba6e73d6848197e2
parent04bab35044e7aa54031e55e3f7039141c54e70d7 (diff)
ALSA: vx: remove 'out of memory' message
Reported by checkpatch.pl Signed-off-by: Mihai Burduselu <michelcatalin@gmail.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
-rw-r--r--sound/drivers/vx/vx_core.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sound/drivers/vx/vx_core.c b/sound/drivers/vx/vx_core.c
index 289f041706cd..f684fffd1397 100644
--- a/sound/drivers/vx/vx_core.c
+++ b/sound/drivers/vx/vx_core.c
@@ -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;