Skip to content

Commit

Permalink
ALSA: hda - Remove OOM message after input_allocate_device
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Joe Perches authored and Takashi Iwai committed Oct 24, 2013
1 parent 0550321 commit b7baa9a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions sound/pci/hda/hda_beep.c
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down

0 comments on commit b7baa9a

Please sign in to comment.