]> git.karo-electronics.de Git - linux-beck.git/commitdiff
ASoC: rt5645: Remove unneeded goto in rt5645_i2c_probe
authorAxel Lin <axel.lin@ingics.com>
Tue, 10 Jun 2014 03:36:41 +0000 (11:36 +0800)
committerMark Brown <broonie@linaro.org>
Sat, 21 Jun 2014 10:31:51 +0000 (11:31 +0100)
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
sound/soc/codecs/rt5645.c

index 02147be2b30213971b09a8297571e5936c779f8f..a7762d0a623e86705e32570d7e36958df8be638e 100644 (file)
@@ -2345,14 +2345,8 @@ static int rt5645_i2c_probe(struct i2c_client *i2c,
 
        }
 
-       ret = snd_soc_register_codec(&i2c->dev, &soc_codec_dev_rt5645,
-                       rt5645_dai, ARRAY_SIZE(rt5645_dai));
-       if (ret < 0)
-               goto err;
-
-       return 0;
-err:
-       return ret;
+       return snd_soc_register_codec(&i2c->dev, &soc_codec_dev_rt5645,
+                                     rt5645_dai, ARRAY_SIZE(rt5645_dai));
 }
 
 static int rt5645_i2c_remove(struct i2c_client *i2c)