Commit 51d503de0210a2b800efdedee23580011f5422c3

Authored by Sachin Kamat
Committed by Takashi Iwai
1 parent 87af0b80c9

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

... ... @@ -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;