Skip to content

Commit

Permalink
ASoC: cs4271: Remove unnecessary additional variable definition
Browse files Browse the repository at this point in the history
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 <[email protected]>
Acked-by: Paul Handrigan <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
  • Loading branch information
charleskeepax authored and broonie committed May 24, 2017
1 parent 2ea659a commit 177e271
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions sound/soc/codecs/cs4271.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 177e271

Please sign in to comment.