Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 177e2713 authored by Charles Keepax's avatar Charles Keepax Committed by Mark Brown
Browse files

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: default avatarCharles Keepax <ckeepax@opensource.wolfsonmicro.com>
Acked-by: default avatarPaul Handrigan <Paul.Handrigan@cirrus.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 2ea659a9
Loading
Loading
Loading
Loading
+0 −2
Original line number Original line Diff line number Diff line
@@ -674,8 +674,6 @@ static int cs4271_common_probe(struct device *dev,
		cs4271->gpio_nreset = cs4271plat->gpio_nreset;
		cs4271->gpio_nreset = cs4271plat->gpio_nreset;


	if (gpio_is_valid(cs4271->gpio_nreset)) {
	if (gpio_is_valid(cs4271->gpio_nreset)) {
		int ret;

		ret = devm_gpio_request(dev, cs4271->gpio_nreset,
		ret = devm_gpio_request(dev, cs4271->gpio_nreset,
					"CS4271 Reset");
					"CS4271 Reset");
		if (ret < 0)
		if (ret < 0)