Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 51d503de authored by Sachin Kamat's avatar Sachin Kamat Committed by Takashi Iwai
Browse files

ALSA: PCM: Remove redundant null check before kfree



kfree on a null pointer is a no-op.

Signed-off-by: default avatarSachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 87af0b80
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -981,7 +981,6 @@ 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);
#endif
	kfree(runtime);