]> git.itanic.dy.fi Git - linux-stable/commit
ASoC: cs35l56: fix reversed if statement in cs35l56_dspwait_asp1tx_put()
authorDan Carpenter <dan.carpenter@linaro.org>
Mon, 5 Feb 2024 12:44:30 +0000 (15:44 +0300)
committerMark Brown <broonie@kernel.org>
Mon, 5 Feb 2024 14:31:35 +0000 (14:31 +0000)
commit4703b014f28bf7a2e56d1da238ee95ef6c5ce76b
tree2c5344ebfc14830a58a462f089ebb25e0c3839e1
parente81fdba0208666b65bafeaba814874b4d6e5edde
ASoC: cs35l56: fix reversed if statement in cs35l56_dspwait_asp1tx_put()

It looks like the "!" character was added accidentally.  The
regmap_update_bits_check() function is normally going to succeed.  This
means the rest of the function is unreachable and we don't handle the
situation where "changed" is true correctly.

Fixes: 07f7d6e7a124 ("ASoC: cs35l56: Fix for initializing ASP1 mixer registers")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Reviewed-by: Richard Fitzgerald <rf@opensource.cirrus.com>
Link: https://lore.kernel.org/r/0c254c07-d1c0-4a5c-a22b-7e135cab032c@moroto.mountain
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/cs35l56.c