projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
87af0b8
)
ALSA: PCM: Remove redundant null check before kfree
author
Sachin Kamat
<sachin.kamat@linaro.org>
Wed, 21 Nov 2012 09:06:54 +0000
(14:36 +0530)
committer
Takashi Iwai
<tiwai@suse.de>
Wed, 21 Nov 2012 09:43:26 +0000
(10:43 +0100)
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>
sound/core/pcm.c
patch
|
blob
|
history
diff --git
a/sound/core/pcm.c
b/sound/core/pcm.c
index 030102caeee96b8080d9af6f2c99217278ec5a86..61798f85d0301f51087312551a677167792eadf7 100644
(file)
--- 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;