Unverified Commit 26ffa016 authored by Charles Keepax's avatar Charles Keepax Committed by Mark Brown
Browse files

ASoC: wm_adsp: Remove redundant NULL check in wm_adsp_buffer_free



wm_adsp_compr_detach is NULL aware so there is no need to check for NULL
before calling it, remove the redundant check.

Signed-off-by: default avatarCharles Keepax <ckeepax@opensource.cirrus.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 7742a5b4
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -3887,7 +3887,6 @@ static int wm_adsp_buffer_free(struct wm_adsp *dsp)
	struct wm_adsp_compr_buf *buf, *tmp;

	list_for_each_entry_safe(buf, tmp, &dsp->buffer_list, list) {
		if (buf->compr)
		wm_adsp_compr_detach(buf->compr);

		kfree(buf->name);