aboutsummaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2012-07-11 02:41:23 -0400
committerMark Brown <broonie@opensource.wolfsonmicro.com>2012-07-11 05:37:15 -0400
commitf96985e3b3cfcd2d21faca79863fb34533d575aa (patch)
tree567fd5d5d92eb61037592c9b5e45bfda4ba3861f /sound
parent2b4d39fc2a80e271ac8d44fccd02277a4b63c557 (diff)
ASoC: STA529: fix an error message
GCC complains that "ret" is uninitialized here. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Acked-By: Rajeev Kumar <rajeev-dlh.kumar@st.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound')
-rw-r--r--sound/soc/codecs/sta529.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sound/soc/codecs/sta529.c b/sound/soc/codecs/sta529.c
index a9f34c736bfa..0c225cd569d2 100644
--- a/sound/soc/codecs/sta529.c
+++ b/sound/soc/codecs/sta529.c
@@ -397,8 +397,9 @@ static __devinit int sta529_i2c_probe(struct i2c_client *i2c,
397 397
398 sta529->regmap = devm_regmap_init_i2c(i2c, &sta529_regmap); 398 sta529->regmap = devm_regmap_init_i2c(i2c, &sta529_regmap);
399 if (IS_ERR(sta529->regmap)) { 399 if (IS_ERR(sta529->regmap)) {
400 ret = PTR_ERR(sta529->regmap);
400 dev_err(&i2c->dev, "Failed to allocate regmap: %d\n", ret); 401 dev_err(&i2c->dev, "Failed to allocate regmap: %d\n", ret);
401 return PTR_ERR(sta529->regmap); 402 return ret;
402 } 403 }
403 404
404 i2c_set_clientdata(i2c, sta529); 405 i2c_set_clientdata(i2c, sta529);