diff options
author | Takashi Iwai <tiwai@suse.de> | 2015-03-10 15:39:55 +0100 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2015-03-10 15:39:55 +0100 |
commit | 8d98a0673f761f9b7be51a293ca9142ec0c037ca (patch) | |
tree | d30312d069a59ef750de013c6d8010b77573047c /sound/core/seq/oss/seq_oss_init.c | |
parent | ALSA: core: reduce stack usage related to snd_ctl_new() (diff) | |
download | linux-dev-8d98a0673f761f9b7be51a293ca9142ec0c037ca.tar.xz linux-dev-8d98a0673f761f9b7be51a293ca9142ec0c037ca.zip |
ALSA: seq_oss: Drop superfluous error/debug messages after malloc failures
The kernel memory allocators already report the errors when the
requested allocation fails, thus we don't need to warn it again in
each caller side.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/core/seq/oss/seq_oss_init.c')
-rw-r--r-- | sound/core/seq/oss/seq_oss_init.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sound/core/seq/oss/seq_oss_init.c b/sound/core/seq/oss/seq_oss_init.c index b0e32e161dd1..2de3feff70d0 100644 --- a/sound/core/seq/oss/seq_oss_init.c +++ b/sound/core/seq/oss/seq_oss_init.c @@ -188,10 +188,8 @@ snd_seq_oss_open(struct file *file, int level) struct seq_oss_devinfo *dp; dp = kzalloc(sizeof(*dp), GFP_KERNEL); - if (!dp) { - pr_err("ALSA: seq_oss: can't malloc device info\n"); + if (!dp) return -ENOMEM; - } dp->cseq = system_client; dp->port = -1; |