ASoC: cs35l36: Remove unneeded variable initialisation
authorCharles Keepax <ckeepax@opensource.cirrus.com>
Tue, 11 May 2021 10:10:49 +0000 (11:10 +0100)
committerMark Brown <broonie@kernel.org>
Tue, 11 May 2021 14:42:42 +0000 (15:42 +0100)
Reported-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Link: https://lore.kernel.org/r/20210511101051.17726-1-ckeepax@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/cs35l36.c

index a038bce..db5472b 100644 (file)
@@ -1156,7 +1156,7 @@ static int cs35l36_component_probe(struct snd_soc_component *component)
 {
        struct cs35l36_private *cs35l36 =
                        snd_soc_component_get_drvdata(component);
-       int ret = 0;
+       int ret;
 
        if ((cs35l36->rev_id == CS35L36_REV_A0) && cs35l36->pdata.dcm_mode) {
                regmap_update_bits(cs35l36->regmap, CS35L36_BSTCVRT_DCM_CTRL,