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

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Harshit Mogalapalli and committed by
Mark Brown
283771e8 09d95072

-1
-1
sound/soc/codecs/cs35l56-spi.c
··· 29 29 if (IS_ERR(cs35l56->regmap)) { 30 30 ret = PTR_ERR(cs35l56->regmap); 31 31 return dev_err_probe(&spi->dev, ret, "Failed to allocate register map\n"); 32 - return ret; 33 32 } 34 33 35 34 cs35l56->dev = &spi->dev;