]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ASoC: amd: acp: acp70: Remove unnecessary if-check
authorThorsten Blum <thorsten.blum@linux.dev>
Mon, 24 Feb 2025 22:12:12 +0000 (23:12 +0100)
committerMark Brown <broonie@kernel.org>
Tue, 25 Feb 2025 13:19:24 +0000 (13:19 +0000)
commit8fd0e127d8da856e34391399df40b33af2b307e0
treecdd457ed6695daf458483e49832ce9e510e5c210
parent63d93f4d0f38fbb95a55729fbd2cc4920743931c
ASoC: amd: acp: acp70: Remove unnecessary if-check

Since list_for_each_entry() expects the list to not be empty, the
iterator variable cannot be NULL and the unnecessary if-check can be
removed. Remove it and indent the code accordingly.

Compile-tested only.

Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Link: https://patch.msgid.link/20250224221214.199849-2-thorsten.blum@linux.dev
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/amd/acp/acp70.c