]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: rk817: fix a warning in rk817_probe()
authorChris Morgan <macromorgan@hotmail.com>
Tue, 1 Jun 2021 21:44:24 +0000 (16:44 -0500)
committerLee Jones <lee.jones@linaro.org>
Wed, 2 Jun 2021 07:05:23 +0000 (08:05 +0100)
commitad3ac207ee637391caaf8d0de271bdf19c685614
treefaca5ee8122a11b62342a04dd25f736dffe61fae
parent19461a31b104671d8123b43e31609960fc4ca2d3
ASoC: rk817: fix a warning in rk817_probe()

The return value of snd_soc_component_write() is stored but not
evaluated and this results in a warning when W=1 is set. Stop storing
the return value to be consistent with all other calls of
snd_soc_component_write() and to remove the warning.

Fixes: 9d04d8c1cbe5 ("ASoC: Add Rockchip rk817 audio CODEC support")
Signed-off-by: Chris Morgan <macromorgan@hotmail.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
sound/soc/codecs/rk817_codec.c