]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
ASoC: tas2770: Remove unneeded read of the TDM_CFG3 register
authorDan Murphy <dmurphy@ti.com>
Mon, 7 Oct 2019 17:11:56 +0000 (12:11 -0500)
committerMark Brown <broonie@kernel.org>
Mon, 7 Oct 2019 18:08:22 +0000 (19:08 +0100)
Remove the unneeded and incorrect read of the TDM_CFG3 register.
The read is done but the value is never used.

Signed-off-by: Dan Murphy <dmurphy@ti.com>
Link: https://lore.kernel.org/r/20191007171157.17813-2-dmurphy@ti.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/tas2770.c

index 15f6fcc6d87eb6883dfaecc13628717a7698e4a7..f3a665b64fd6e30aa43dd9a69556305e13409d62 100644 (file)
@@ -374,7 +374,6 @@ static int tas2770_set_fmt(struct snd_soc_dai *dai, unsigned int fmt)
 {
        u8 tdm_rx_start_slot = 0, asi_cfg_1 = 0;
        int ret;
-       int value = 0;
        struct snd_soc_component *component = dai->component;
        struct tas2770_priv *tas2770 =
                        snd_soc_component_get_drvdata(component);
@@ -430,8 +429,6 @@ static int tas2770_set_fmt(struct snd_soc_dai *dai, unsigned int fmt)
        if (ret)
                return ret;
 
-       value = snd_soc_component_read32(component, TAS2770_TDM_CFG_REG3);
-
        tas2770->asi_format = fmt;
 
        return 0;