Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: 0d6a04da9b25 ("ASoC: Add Rockchip rk817 audio CODEC support")

Signed-off-by: Chris Morgan <macromorgan@hotmail.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>

authored by

Chris Morgan and committed by
Lee Jones
ef7570b6 437faaa6

+1 -2
+1 -2
sound/soc/codecs/rk817_codec.c
··· 415 415 { 416 416 struct rk817_codec_priv *rk817 = snd_soc_component_get_drvdata(component); 417 417 struct rk808 *rk808 = dev_get_drvdata(component->dev->parent); 418 - int ret; 419 418 420 419 snd_soc_component_init_regmap(component, rk808->regmap); 421 420 rk817->component = component; 422 421 423 - ret = snd_soc_component_write(component, RK817_CODEC_DTOP_LPT_SRST, 0x40); 422 + snd_soc_component_write(component, RK817_CODEC_DTOP_LPT_SRST, 0x40); 424 423 425 424 rk817_init(component); 426 425