Commit 51d503de0210a2b800efdedee23580011f5422c3
Committed by
Takashi Iwai
1 parent
87af0b80c9
Exists in
smarc-l5.0.0_1.0.0-ga
and in
5 other branches
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>
Showing 1 changed file with 1 additions and 2 deletions Side-by-side Diff
sound/core/pcm.c
... | ... | @@ -981,8 +981,7 @@ |
981 | 981 | PAGE_ALIGN(sizeof(struct snd_pcm_mmap_control))); |
982 | 982 | kfree(runtime->hw_constraints.rules); |
983 | 983 | #ifdef CONFIG_SND_PCM_XRUN_DEBUG |
984 | - if (runtime->hwptr_log) | |
985 | - kfree(runtime->hwptr_log); | |
984 | + kfree(runtime->hwptr_log); | |
986 | 985 | #endif |
987 | 986 | kfree(runtime); |
988 | 987 | substream->runtime = NULL; |