summaryrefslogtreecommitdiffstats
path: root/sound/pci/hda
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2013-10-23 21:14:54 +0200
committerTakashi Iwai <tiwai@suse.de>2013-10-24 11:26:07 +0200
commitb7baa9a0e324e32433d894374c3bddea29961aa0 (patch)
tree838986c2d04ed23d64758b5b2710c8618ab45d4f /sound/pci/hda
parentALSA: Add SoC on-chip internal ram support for DMA buffer allocation (diff)
downloadlinux-b7baa9a0e324e32433d894374c3bddea29961aa0.tar.xz
linux-b7baa9a0e324e32433d894374c3bddea29961aa0.zip
ALSA: hda - Remove OOM message after input_allocate_device
Emitting an OOM message isn't necessary after input_allocate_device as there's a generic OOM and a dump_stack already done. Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/hda')
-rw-r--r--sound/pci/hda/hda_beep.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sound/pci/hda/hda_beep.c b/sound/pci/hda/hda_beep.c
index 63c99090a4ec..20d065a17226 100644
--- a/sound/pci/hda/hda_beep.c
+++ b/sound/pci/hda/hda_beep.c
@@ -151,10 +151,8 @@ static int snd_hda_do_attach(struct hda_beep *beep)
int err;
input_dev = input_allocate_device();
- if (!input_dev) {
- printk(KERN_INFO "hda_beep: unable to allocate input device\n");
+ if (!input_dev)
return -ENOMEM;
- }
/* setup digital beep device */
input_dev->name = "HDA Digital PCBeep";