aboutsummaryrefslogtreecommitdiffstats
path: root/sound/core/seq/seq_ports.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2015-03-10 15:41:18 +0100
committerTakashi Iwai <tiwai@suse.de>2015-03-10 15:41:18 +0100
commit24db8bbaa3fcfaf0c2faccbff5864b58088ac1f6 (patch)
treeab1e97ade094b0f661bf9aedc0c3aafb7cfab0cf /sound/core/seq/seq_ports.c
parentALSA: seq_oss: Drop superfluous error/debug messages after malloc failures (diff)
downloadlinux-dev-24db8bbaa3fcfaf0c2faccbff5864b58088ac1f6.tar.xz
linux-dev-24db8bbaa3fcfaf0c2faccbff5864b58088ac1f6.zip
ALSA: seq: 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 '')
-rw-r--r--sound/core/seq/seq_ports.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sound/core/seq/seq_ports.c b/sound/core/seq/seq_ports.c
index 46ff593f618d..55170a20ae72 100644
--- a/sound/core/seq/seq_ports.c
+++ b/sound/core/seq/seq_ports.c
@@ -141,10 +141,8 @@ struct snd_seq_client_port *snd_seq_create_port(struct snd_seq_client *client,
/* create a new port */
new_port = kzalloc(sizeof(*new_port), GFP_KERNEL);
- if (! new_port) {
- pr_debug("ALSA: seq: malloc failed for registering client port\n");
+ if (!new_port)
return NULL; /* failure, out of memory */
- }
/* init port data */
new_port->addr.client = client->number;
new_port->addr.port = -1;