summaryrefslogtreecommitdiffstats
path: root/sound/core
diff options
context:
space:
mode:
authorSachin Kamat <sachin.kamat@linaro.org>2012-11-21 14:36:54 +0530
committerTakashi Iwai <tiwai@suse.de>2012-11-21 10:43:26 +0100
commit51d503de0210a2b800efdedee23580011f5422c3 (patch)
treedee76703aaedec8a78d4966541edf35a359331c9 /sound/core
parent87af0b80c933f05a4c7dd8c5edebe10365e76220 (diff)
downloadop-kernel-dev-51d503de0210a2b800efdedee23580011f5422c3.zip
op-kernel-dev-51d503de0210a2b800efdedee23580011f5422c3.tar.gz
ALSA: PCM: Remove redundant null check before kfree
kfree on a null pointer is a no-op. Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/core')
-rw-r--r--sound/core/pcm.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sound/core/pcm.c b/sound/core/pcm.c
index 030102c..61798f8 100644
--- a/sound/core/pcm.c
+++ b/sound/core/pcm.c
@@ -981,8 +981,7 @@ void snd_pcm_detach_substream(struct snd_pcm_substream *substream)
PAGE_ALIGN(sizeof(struct snd_pcm_mmap_control)));
kfree(runtime->hw_constraints.rules);
#ifdef CONFIG_SND_PCM_XRUN_DEBUG
- if (runtime->hwptr_log)
- kfree(runtime->hwptr_log);
+ kfree(runtime->hwptr_log);
#endif
kfree(runtime);
substream->runtime = NULL;
OpenPOWER on IntegriCloud