ALSA: hda - Remove OOM message after input_allocate_device
authorJoe Perches <joe@perches.com>
Wed, 23 Oct 2013 19:14:54 +0000 (12:14 -0700)
committerTakashi Iwai <tiwai@suse.de>
Thu, 24 Oct 2013 09:26:07 +0000 (11:26 +0200)
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>
sound/pci/hda/hda_beep.c

index 63c9909..20d065a 100644 (file)
@@ -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";