diff options
author | Takashi Iwai <tiwai@suse.de> | 2015-03-10 17:41:18 +0300 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2015-03-10 17:41:18 +0300 |
commit | 24db8bbaa3fcfaf0c2faccbff5864b58088ac1f6 (patch) | |
tree | ab1e97ade094b0f661bf9aedc0c3aafb7cfab0cf /sound/core/seq/seq_timer.c | |
parent | 8d98a0673f761f9b7be51a293ca9142ec0c037ca (diff) | |
download | linux-24db8bbaa3fcfaf0c2faccbff5864b58088ac1f6.tar.xz |
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 'sound/core/seq/seq_timer.c')
-rw-r--r-- | sound/core/seq/seq_timer.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sound/core/seq/seq_timer.c b/sound/core/seq/seq_timer.c index e73605393eee..186f1611103c 100644 --- a/sound/core/seq/seq_timer.c +++ b/sound/core/seq/seq_timer.c @@ -56,10 +56,8 @@ struct snd_seq_timer *snd_seq_timer_new(void) struct snd_seq_timer *tmr; tmr = kzalloc(sizeof(*tmr), GFP_KERNEL); - if (tmr == NULL) { - pr_debug("ALSA: seq: malloc failed for snd_seq_timer_new() \n"); + if (!tmr) return NULL; - } spin_lock_init(&tmr->lock); /* reset setup to defaults */ |