ASoC: cs35l41: Delete unnecessary condition in cs35l41_pcm_hw_params()
authorDan Carpenter <dan.carpenter@linaro.org>
Wed, 17 Apr 2024 09:52:34 +0000 (12:52 +0300)
committerMark Brown <broonie@kernel.org>
Tue, 23 Apr 2024 05:24:01 +0000 (14:24 +0900)
commit181d58cfe90f6a2ad53f6811d318fbc7149df8c1
tree3b4e903bdd1c9ac697c2e33b837a4a8e6a36609a
parentab371a026a1a4ad81817d82ba433c19934082894
ASoC: cs35l41: Delete unnecessary condition in cs35l41_pcm_hw_params()

This code returns -EINVAL if "i" is out of bounds a few lines earlier.
Delete this unnecessary check and pull the code in a tab.

Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Link: https://lore.kernel.org/r/1ee32bfb-6f6c-4b61-887b-6f655abbfc47@moroto.mountain
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/cs35l41.c