aboutsummaryrefslogtreecommitdiffstats
path: root/sound/core/seq/oss/seq_oss_init.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2015-03-10 15:39:55 +0100
committerTakashi Iwai <tiwai@suse.de>2015-03-10 15:39:55 +0100
commit8d98a0673f761f9b7be51a293ca9142ec0c037ca (patch)
treed30312d069a59ef750de013c6d8010b77573047c /sound/core/seq/oss/seq_oss_init.c
parentALSA: core: reduce stack usage related to snd_ctl_new() (diff)
downloadlinux-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.c4
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;