diff options
author | Charles Keepax <ckeepax@opensource.wolfsonmicro.com> | 2017-05-23 17:03:39 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2017-05-24 19:12:36 +0200 |
commit | 177e27133ae9c9f5cbc306feaaa53d8fbc75e45f (patch) | |
tree | 02246ae3dab194e999f8a3e79f98f6ec703ad621 /sound/soc/codecs/cs4271.c | |
parent | Linux 4.12-rc1 (diff) | |
download | linux-177e27133ae9c9f5cbc306feaaa53d8fbc75e45f.tar.xz linux-177e27133ae9c9f5cbc306feaaa53d8fbc75e45f.zip |
ASoC: cs4271: Remove unnecessary additional variable definition
The function already defines a ret variable at the top and makes
no particular use of the shadowed definition, as such remove the
redundant definition.
Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Acked-by: Paul Handrigan <Paul.Handrigan@cirrus.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/cs4271.c')
-rw-r--r-- | sound/soc/codecs/cs4271.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/sound/soc/codecs/cs4271.c b/sound/soc/codecs/cs4271.c index e78b5f055f25..d8824773dc29 100644 --- a/sound/soc/codecs/cs4271.c +++ b/sound/soc/codecs/cs4271.c @@ -674,8 +674,6 @@ static int cs4271_common_probe(struct device *dev, cs4271->gpio_nreset = cs4271plat->gpio_nreset; if (gpio_is_valid(cs4271->gpio_nreset)) { - int ret; - ret = devm_gpio_request(dev, cs4271->gpio_nreset, "CS4271 Reset"); if (ret < 0) |