diff options
author | Harshit Mogalapalli <harshit.m.mogalapalli@oracle.com> | 2023-03-24 07:55:35 -0700 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2023-03-24 16:36:18 +0000 |
commit | 283771e8eefcbe4a0a84c6a00a0b7a210bbc5846 (patch) | |
tree | 113277b38b676f9e914d0c2d526d8e0a4aa689b2 /sound/soc/codecs/cs35l56-spi.c | |
parent | 09d950723479ef0af3a317ac190a8c1fadd7343c (diff) |
ASoC: cs35l56: Remove redundant return statement in cs35l56_spi_probe()
We have unreachable 'return ret' statement in cs35l56_spi_probe(),
delete it as its dead code..
This is found by static analysis with smatch.
Fixes: e49611252900 ("ASoC: cs35l56: Add driver for Cirrus Logic CS35L56")
Signed-off-by: Harshit Mogalapalli <harshit.m.mogalapalli@oracle.com>
Reviewed-by: Richard Fitzgerald <rf@opensource.cirrus.com>
Link: https://lore.kernel.org/r/20230324145535.3951689-1-harshit.m.mogalapalli@oracle.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/cs35l56-spi.c')
-rw-r--r-- | sound/soc/codecs/cs35l56-spi.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/sound/soc/codecs/cs35l56-spi.c b/sound/soc/codecs/cs35l56-spi.c index 80dcf37daae2..4b2084e85f29 100644 --- a/sound/soc/codecs/cs35l56-spi.c +++ b/sound/soc/codecs/cs35l56-spi.c @@ -29,7 +29,6 @@ static int cs35l56_spi_probe(struct spi_device *spi) if (IS_ERR(cs35l56->regmap)) { ret = PTR_ERR(cs35l56->regmap); return dev_err_probe(&spi->dev, ret, "Failed to allocate register map\n"); - return ret; } cs35l56->dev = &spi->dev; |