ASoC: cs4271: Remove unnecessary additional variable definition
authorCharles Keepax <ckeepax@opensource.wolfsonmicro.com>
Tue, 23 May 2017 15:03:39 +0000 (16:03 +0100)
committerMark Brown <broonie@kernel.org>
Wed, 24 May 2017 17:12:36 +0000 (18:12 +0100)
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>
sound/soc/codecs/cs4271.c

index e78b5f055f25a5961d04fb58ecf19001cbaa055c..d8824773dc29985bbed7f6f52d1646bdee41790b 100644 (file)
@@ -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)