]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ASoC: loongson: Simplify if statment in loongson_card_hw_params()
authorBinbin Zhou <zhoubinbin@loongson.cn>
Mon, 9 Sep 2024 07:19:34 +0000 (15:19 +0800)
committerMark Brown <broonie@kernel.org>
Mon, 9 Sep 2024 15:27:01 +0000 (16:27 +0100)
commite28ee1b8a92e6797fc652fa64e536178dd627e89
tree957a6088e1537402ea3c23d4ea8d80c02f666511
parent3d2528d6c021cba141a7079ae1a5937190700899
ASoC: loongson: Simplify if statment in loongson_card_hw_params()

Deal with illegal conditions first and put the normal process code
outside the if condition to improve code readability.

Signed-off-by: Binbin Zhou <zhoubinbin@loongson.cn>
Link: https://patch.msgid.link/98b71f9643970f11bc500c01599c7aeb77ff2a58.1725844530.git.zhoubinbin@loongson.cn
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/loongson/loongson_card.c