Skip to content

Commit

Permalink
ASoC: STA529: fix an error message
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Dan Carpenter authored and Mark Brown committed Jul 11, 2012
1 parent 2b4d39f commit f96985e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sound/soc/codecs/sta529.c
Original file line number Diff line number Diff line change
Expand Up @@ -397,8 +397,9 @@ static __devinit int sta529_i2c_probe(struct i2c_client *i2c,

sta529->regmap = devm_regmap_init_i2c(i2c, &sta529_regmap);
if (IS_ERR(sta529->regmap)) {
ret = PTR_ERR(sta529->regmap);
dev_err(&i2c->dev, "Failed to allocate regmap: %d\n", ret);
return PTR_ERR(sta529->regmap);
return ret;
}

i2c_set_clientdata(i2c, sta529);
Expand Down

0 comments on commit f96985e

Please sign in to comment.